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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Objectprotected abstract Objectprotected Objectpost_Methods(Method m, Object result) Post Methods interceptor.protected abstract ObjectvoidTranslation 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)voidTranslation 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)voidTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader)voidTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader, long)voidTranslation compliant implementation of java.sql.PreparedStatement#setClob(int, java.sql.Clob)voidTranslation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date)voidTranslation 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)voidTranslation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader)voidTranslation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)voidTranslation 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)voidTranslation compliant implementation of java.sql.PreparedStatement#setNull(int, int, java.lang.String)voidTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object)voidTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int)voidTranslation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)voidTranslation compliant implementation of java.sql.PreparedStatement#setRef(int, java.sql.Ref)voidTranslation 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)voidTranslation compliant implementation of java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)voidTranslation compliant implementation of java.sql.PreparedStatement#setString(int, java.lang.String)voidTranslation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time)voidTranslation 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)voidTranslation 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
-
Constructor Details
-
BabelfishPreparedStatement
public BabelfishPreparedStatement()
-
-
Method Details
-
getCreator
- Specified by:
getCreatorin classBabelfishStatement- Returns:
-
getDelegate
- Specified by:
getDelegatein classBabelfishStatement- Returns:
-
proxify
- Specified by:
proxifyin classBabelfishStatement
-
translateError
Error interceptor. Handles error translation in case of exception- Overrides:
translateErrorin classBabelfishStatement- Parameters:
m-ex-- Returns:
- Throws:
SQLException
-
post_Methods
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
Translation compliant implementation of java.sql.PreparedStatement#setArray(int, java.sql.Array)- Throws:
SQLException- See Also:
-
setAsciiStream
Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream)- Throws:
SQLException- See Also:
-
setAsciiStream
Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, int)- Throws:
SQLException- See Also:
-
setAsciiStream
Translation compliant implementation of java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, long)- Throws:
SQLException- See Also:
-
setBigDecimal
Translation compliant implementation of java.sql.PreparedStatement#setBigDecimal(int, java.math.BigDecimal)- Throws:
SQLException- See Also:
-
setBinaryStream
Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream)- Throws:
SQLException- See Also:
-
setBinaryStream
Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, int)- Throws:
SQLException- See Also:
-
setBinaryStream
Translation compliant implementation of java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, long) -
setBlob
Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.sql.Blob)- Throws:
SQLException- See Also:
-
setBlob
Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream)- Throws:
SQLException- See Also:
-
setBlob
Translation compliant implementation of java.sql.PreparedStatement#setBlob(int, java.io.InputStream, long)- Throws:
SQLException- See Also:
-
setBoolean
Translation compliant implementation of java.sql.PreparedStatement#setBoolean(int, boolean)- Throws:
SQLException- See Also:
-
setByte
Translation compliant implementation of java.sql.PreparedStatement#setByte(int, byte)- Throws:
SQLException- See Also:
-
setBytes
Translation compliant implementation of java.sql.PreparedStatement#setBytes(int, byte[])- Throws:
SQLException- See Also:
-
setCharacterStream
Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader)- Throws:
SQLException- See Also:
-
setCharacterStream
Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, int)- Throws:
SQLException- See Also:
-
setCharacterStream
Translation compliant implementation of java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, long)- Throws:
SQLException- See Also:
-
setClob
Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.sql.Clob)- Throws:
SQLException- See Also:
-
setClob
Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader)- Throws:
SQLException- See Also:
-
setClob
Translation compliant implementation of java.sql.PreparedStatement#setClob(int, java.io.Reader, long)- Throws:
SQLException- See Also:
-
setDate
Translation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date)- Throws:
SQLException- See Also:
-
setDate
Translation compliant implementation of java.sql.PreparedStatement#setDate(int, java.sql.Date, java.util.Calendar) -
setDouble
Translation compliant implementation of java.sql.PreparedStatement#setDouble(int, double)- Throws:
SQLException- See Also:
-
setFloat
Translation compliant implementation of java.sql.PreparedStatement#setFloat(int, float)- Throws:
SQLException- See Also:
-
setInt
Translation compliant implementation of java.sql.PreparedStatement#setInt(int, int)- Throws:
SQLException- See Also:
-
setLong
Translation compliant implementation of java.sql.PreparedStatement#setLong(int, long)- Throws:
SQLException- See Also:
-
setNCharacterStream
Translation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader)- Throws:
SQLException- See Also:
-
setNCharacterStream
Translation compliant implementation of java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader, long)- Throws:
SQLException- See Also:
-
setNClob
Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.sql.NClob)- Throws:
SQLException- See Also:
-
setNClob
Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader)- Throws:
SQLException- See Also:
-
setNClob
Translation compliant implementation of java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)- Throws:
SQLException- See Also:
-
setNString
Translation compliant implementation of java.sql.PreparedStatement#setNString(int, java.lang.String)- Throws:
SQLException- See Also:
-
setNull
Translation compliant implementation of java.sql.PreparedStatement#setNull(int, int)- Throws:
SQLException- See Also:
-
setNull
Translation compliant implementation of java.sql.PreparedStatement#setNull(int, int, java.lang.String)- Throws:
SQLException- See Also:
-
setObject
Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object)- Throws:
SQLException- See Also:
-
setObject
Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int)- Throws:
SQLException- See Also:
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException Translation compliant implementation of java.sql.PreparedStatement#setObject(int, java.lang.Object, int, int)- Throws:
SQLException- See Also:
-
setRef
Translation compliant implementation of java.sql.PreparedStatement#setRef(int, java.sql.Ref)- Throws:
SQLException- See Also:
-
setRowId
Translation compliant implementation of java.sql.PreparedStatement#setRowId(int, java.sql.RowId)- Throws:
SQLException- See Also:
-
setShort
Translation compliant implementation of java.sql.PreparedStatement#setShort(int, short)- Throws:
SQLException- See Also:
-
setSQLXML
Translation compliant implementation of java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)- Throws:
SQLException- See Also:
-
setString
Translation compliant implementation of java.sql.PreparedStatement#setString(int, java.lang.String)- Throws:
SQLException- See Also:
-
setTime
Translation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time)- Throws:
SQLException- See Also:
-
setTime
Translation compliant implementation of java.sql.PreparedStatement#setTime(int, java.sql.Time, java.util.Calendar) -
setTimestamp
Translation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp)- Throws:
SQLException- See Also:
-
setTimestamp
Translation compliant implementation of java.sql.PreparedStatement#setTimestamp(int, java.sql.Timestamp, java.util.Calendar) -
setUnicodeStream
Translation compliant implementation of java.sql.PreparedStatement#setUnicodeStream(int, java.io.InputStream, int) -
setURL
Translation compliant implementation of java.sql.PreparedStatement#setURL(int, java.net.URL)- Throws:
SQLException- See Also:
-