Package oracle.jdbc.babelfish
Class BabelfishPreparedStatement
- java.lang.Object
-
- oracle.jdbc.babelfish.BabelfishGenericProxy
-
- oracle.jdbc.babelfish.BabelfishStatement
-
- oracle.jdbc.babelfish.BabelfishPreparedStatement
-
- Direct Known Subclasses:
BabelfishCallableStatement
public abstract class BabelfishPreparedStatement extends BabelfishStatement
Proxy Superclass for java.sql.PreparedStatement interface. It is used by the Oracle JDBC proxy library to proxify java.sql.PreparedStatement objects to support the auto translation features.
-
-
Constructor Summary
Constructors Constructor Description BabelfishPreparedStatement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ObjectgetCreator()protected abstract ObjectgetDelegate()protected Objectpost_Methods(Method m, Object result)Post Methods interceptor.protected abstract Objectproxify(Object d, Object creator)voidsetArray(int parameterIndex, Array x)Translation compliant implementation of java.sql.PreparedStatement#setArray(int, java.sql.Array)voidsetAsciiStream(int parameterIndex, InputStream x)Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream)voidsetAsciiStream(int parameterIndex, InputStream x, int length)Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, int)voidsetAsciiStream(int parameterIndex, InputStream x, long length)Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, long)voidsetBigDecimal(int parameterIndex, BigDecimal x)Translation compliant implementation of java.sql.PreparedStatement#setBigDecimal(int, java.math.BigDecimal)voidsetBinaryStream(int parameterIndex, InputStream x)Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream)voidsetBinaryStream(int parameterIndex, InputStream x, int length)Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, int)voidsetBinaryStream(int parameterIndex, InputStream x, long length)Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, long)voidsetBlob(int parameterIndex, InputStream x)Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream)voidsetBlob(int parameterIndex, InputStream x, long length)Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream, long)voidsetBlob(int parameterIndex, Blob x)Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.sql.Blob)voidsetBoolean(int parameterIndex, boolean x)Translation compliant implementation of java.sql.PreparedStatement#setBoolean(int, boolean)voidsetByte(int parameterIndex, byte x)Translation compliant implementation of java.sql.PreparedStatement#setByte(int, byte)voidsetBytes(int parameterIndex, byte[] x)Translation compliant implementation of java.sql.PreparedStatement#setBytes(int, byte[])voidsetCharacterStream(int parameterIndex, Reader reader)Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader)voidsetCharacterStream(int parameterIndex, Reader reader, int length)Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, int)voidsetCharacterStream(int parameterIndex, Reader reader, long length)Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, long)voidsetClob(int parameterIndex, Reader reader)Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader)voidsetClob(int parameterIndex, Reader reader, long length)Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader, long)voidsetClob(int parameterIndex, Clob x)Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.sql.Clob)voidsetDate(int parameterIndex, Date x)Translation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date)voidsetDate(int parameterIndex, Date x, Calendar cal)Translation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date, java.util.Calendar)voidsetDouble(int parameterIndex, double x)Translation compliant implementation of java.sql.PreparedStatement#setDouble(int, double)voidsetFloat(int parameterIndex, float x)Translation compliant implementation of java.sql.PreparedStatement#setFloat(int, float)voidsetInt(int parameterIndex, int x)Translation compliant implementation of java.sql.PreparedStatement#setInt(int, int)voidsetLong(int parameterIndex, long x)Translation compliant implementation of java.sql.PreparedStatement#setLong(int, long)voidsetNCharacterStream(int parameterIndex, Reader reader)Translation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader)voidsetNCharacterStream(int parameterIndex, Reader reader, long length)Translation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader, long)voidsetNClob(int parameterIndex, Reader reader)Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader)voidsetNClob(int parameterIndex, Reader reader, long length)Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)voidsetNClob(int parameterIndex, NClob x)Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.sql.NClob)voidsetNString(int parameterIndex, String x)Translation compliant implementation of java.sql.PreparedStatement#setNString(int, java.lang.String)voidsetNull(int parameterIndex, int sqltype)Translation compliant implementation of java.sql.PreparedStatement#setNull(int, int)voidsetNull(int parameterIndex, int sqltype, String typeName)Translation compliant implementation of java.sql.PreparedStatement#setNull(int, int, java.lang.String)voidsetObject(int parameterIndex, Object x)Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object)voidsetObject(int parameterIndex, Object x, int targetSqlType)Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int)voidsetObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)voidsetRef(int parameterIndex, Ref x)Translation compliant implementation of java.sql.PreparedStatement#setRef(int, java.sql.Ref)voidsetRowId(int parameterIndex, RowId x)Translation compliant implementation of java.sql.PreparedStatement#setRowId(int, java.sql.RowId)voidsetShort(int parameterIndex, short x)Translation compliant implementation of java.sql.PreparedStatement#setShort(int, short)voidsetSQLXML(int parameterIndex, SQLXML x)Translation compliant implementation of java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)voidsetString(int parameterIndex, String x)Translation compliant implementation of java.sql.PreparedStatement#setString(int, java.lang.String)voidsetTime(int parameterIndex, Time x)Translation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time)voidsetTime(int parameterIndex, Time x, Calendar cal)Translation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time, java.util.Calendar)voidsetTimestamp(int parameterIndex, Timestamp x)Translation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp)voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal)Translation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, java.util.Calendar)voidsetUnicodeStream(int parameterIndex, InputStream x, int length)Translation compliant implementation of java.sql.PreparedStatement#setUnicodeStream(int, java.io.InputStream, int)voidsetURL(int parameterIndex, URL x)Translation compliant implementation of java.sql.PreparedStatement#setURL(int, java.net.URL)protected ObjecttranslateError(Method m, SQLException ex)Error interceptor.-
Methods inherited from class oracle.jdbc.babelfish.BabelfishStatement
addBatch, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate
-
-
-
-
Method Detail
-
getCreator
protected abstract Object getCreator()
- Specified by:
getCreatorin classBabelfishStatement- Returns:
-
getDelegate
protected abstract Object getDelegate()
- Specified by:
getDelegatein classBabelfishStatement- Returns:
-
proxify
protected abstract Object proxify(Object d, Object creator)
- Specified by:
proxifyin classBabelfishStatement
-
translateError
protected Object translateError(Method m, SQLException ex) throws SQLException
Error interceptor. Handles error translation in case of exception- Overrides:
translateErrorin classBabelfishStatement- Parameters:
m-ex-- Returns:
- Throws:
SQLException
-
post_Methods
protected Object post_Methods(Method m, Object result)
Post Methods interceptor. Sets the translator in the returning object if the returning object is a child of BabelfishGenericProxy- Overrides:
post_Methodsin classBabelfishStatement- Parameters:
m-result-- Returns:
-
setArray
public void setArray(int parameterIndex, Array x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setArray(int, java.sql.Array)- Throws:
SQLException- See Also:
PreparedStatement.setArray(int, java.sql.Array)
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream)- Throws:
SQLException- See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream)
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, int)- Throws:
SQLException- See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, int)
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, long)- Throws:
SQLException- See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, long)
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBigDecimal(int, java.math.BigDecimal)- Throws:
SQLException- See Also:
PreparedStatement.setBigDecimal(int, java.math.BigDecimal)
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream)- Throws:
SQLException- See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream)
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, int)- Throws:
SQLException- See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream, int)
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, long)
-
setBlob
public void setBlob(int parameterIndex, Blob x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.sql.Blob)- Throws:
SQLException- See Also:
PreparedStatement.setBlob(int, java.sql.Blob)
-
setBlob
public void setBlob(int parameterIndex, InputStream x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream)- Throws:
SQLException- See Also:
PreparedStatement.setBlob(int, java.io.InputStream)
-
setBlob
public void setBlob(int parameterIndex, InputStream x, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream, long)- Throws:
SQLException- See Also:
PreparedStatement.setBlob(int, java.io.InputStream, long)
-
setBoolean
public void setBoolean(int parameterIndex, boolean x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBoolean(int, boolean)- Throws:
SQLException- See Also:
PreparedStatement.setBoolean(int, boolean)
-
setByte
public void setByte(int parameterIndex, byte x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setByte(int, byte)- Throws:
SQLException- See Also:
PreparedStatement.setByte(int, byte)
-
setBytes
public void setBytes(int parameterIndex, byte[] x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setBytes(int, byte[])- Throws:
SQLException- See Also:
PreparedStatement.setBytes(int, byte[])
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader)- Throws:
SQLException- See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader)
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, int)- Throws:
SQLException- See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, int)
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, long)- Throws:
SQLException- See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, long)
-
setClob
public void setClob(int parameterIndex, Clob x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.sql.Clob)- Throws:
SQLException- See Also:
PreparedStatement.setClob(int, java.sql.Clob)
-
setClob
public void setClob(int parameterIndex, Reader reader) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader)- Throws:
SQLException- See Also:
PreparedStatement.setClob(int, java.io.Reader)
-
setClob
public void setClob(int parameterIndex, Reader reader, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader, long)- Throws:
SQLException- See Also:
PreparedStatement.setClob(int, java.io.Reader, long)
-
setDate
public void setDate(int parameterIndex, Date x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date)- Throws:
SQLException- See Also:
PreparedStatement.setDate(int, java.sql.Date)
-
setDate
public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date, java.util.Calendar)
-
setDouble
public void setDouble(int parameterIndex, double x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setDouble(int, double)- Throws:
SQLException- See Also:
PreparedStatement.setDouble(int, double)
-
setFloat
public void setFloat(int parameterIndex, float x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setFloat(int, float)- Throws:
SQLException- See Also:
PreparedStatement.setFloat(int, float)
-
setInt
public void setInt(int parameterIndex, int x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setInt(int, int)- Throws:
SQLException- See Also:
PreparedStatement.setInt(int, int)
-
setLong
public void setLong(int parameterIndex, long x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setLong(int, long)- Throws:
SQLException- See Also:
PreparedStatement.setLong(int, long)
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader reader) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader)- Throws:
SQLException- See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader)
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader reader, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader, long)- Throws:
SQLException- See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader, long)
-
setNClob
public void setNClob(int parameterIndex, NClob x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.sql.NClob)- Throws:
SQLException- See Also:
PreparedStatement.setNClob(int, java.sql.NClob)
-
setNClob
public void setNClob(int parameterIndex, Reader reader) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader)- Throws:
SQLException- See Also:
PreparedStatement.setNClob(int, java.io.Reader)
-
setNClob
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)- Throws:
SQLException- See Also:
PreparedStatement.setNClob(int, java.io.Reader, long)
-
setNString
public void setNString(int parameterIndex, String x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNString(int, java.lang.String)- Throws:
SQLException- See Also:
PreparedStatement.setNString(int, java.lang.String)
-
setNull
public void setNull(int parameterIndex, int sqltype) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNull(int, int)- Throws:
SQLException- See Also:
PreparedStatement.setNull(int, int)
-
setNull
public void setNull(int parameterIndex, int sqltype, String typeName) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setNull(int, int, java.lang.String)- Throws:
SQLException- See Also:
PreparedStatement.setNull(int, int, java.lang.String)
-
setObject
public void setObject(int parameterIndex, Object x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object)- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object)
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int)- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object, int)
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)- Throws:
SQLException- See Also:
PreparedStatement.setObject(int, java.lang.Object, int, int)
-
setRef
public void setRef(int parameterIndex, Ref x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setRef(int, java.sql.Ref)- Throws:
SQLException- See Also:
PreparedStatement.setRef(int, java.sql.Ref)
-
setRowId
public void setRowId(int parameterIndex, RowId x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setRowId(int, java.sql.RowId)- Throws:
SQLException- See Also:
PreparedStatement.setRowId(int, java.sql.RowId)
-
setShort
public void setShort(int parameterIndex, short x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setShort(int, short)- Throws:
SQLException- See Also:
PreparedStatement.setShort(int, short)
-
setSQLXML
public void setSQLXML(int parameterIndex, SQLXML x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)- Throws:
SQLException- See Also:
PreparedStatement.setSQLXML(int, java.sql.SQLXML)
-
setString
public void setString(int parameterIndex, String x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setString(int, java.lang.String)- Throws:
SQLException- See Also:
PreparedStatement.setString(int, java.lang.String)
-
setTime
public void setTime(int parameterIndex, Time x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time)- Throws:
SQLException- See Also:
PreparedStatement.setTime(int, java.sql.Time)
-
setTime
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time, java.util.Calendar)
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp)- Throws:
SQLException- See Also:
PreparedStatement.setTimestamp(int, java.sql.Timestamp)
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, java.util.Calendar)
-
setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setUnicodeStream(int, java.io.InputStream, int)
-
setURL
public void setURL(int parameterIndex, URL x) throws SQLExceptionTranslation compliant implementation of java.sql.PreparedStatement#setURL(int, java.net.URL)- Throws:
SQLException- See Also:
PreparedStatement.setURL(int, java.net.URL)
-
-