Package oracle.jdbc.babelfish
Class BabelfishCallableStatement
- java.lang.Object
-
- oracle.jdbc.babelfish.BabelfishGenericProxy
-
- oracle.jdbc.babelfish.BabelfishStatement
-
- oracle.jdbc.babelfish.BabelfishPreparedStatement
-
- oracle.jdbc.babelfish.BabelfishCallableStatement
-
public abstract class BabelfishCallableStatement extends BabelfishPreparedStatement
Proxy Superclass for java.sql.CallableStatement interface. It is used by the Oracle JDBC proxy library to proxify java.sql.CallableStatement objects to support the auto translation features.
-
<section role="region">
-
Constructor Summary
Constructors Constructor Description BabelfishCallableStatement()
-
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 interceptor.voidregisterOutParameter(int parameterIndex, int sqlType)Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int)voidregisterOutParameter(int parameterIndex, int sqlType, int scale)Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, int)voidregisterOutParameter(int parameterIndex, int sqlType, String typeName)Translation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, java.lang.String)protected ObjecttranslateError(Method m, SQLException ex)Interceptor for translation of errors.-
Methods inherited from class oracle.jdbc.babelfish.BabelfishPreparedStatement
proxify, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
-
Methods inherited from class oracle.jdbc.babelfish.BabelfishStatement
addBatch, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate
-
-
-
<section role="region">
</section>
<section role="region">
-
Method Detail
-
getCreator
protected abstract Object getCreator()
- Specified by:
getCreatorin classBabelfishPreparedStatement- Returns:
-
getDelegate
protected abstract Object getDelegate()
- Specified by:
getDelegatein classBabelfishPreparedStatement- Returns:
-
translateError
protected Object translateError(Method m, SQLException ex) throws SQLException
Interceptor for translation of errors.- Overrides:
translateErrorin classBabelfishPreparedStatement- Returns:
- Throws:
SQLException
-
post_Methods
protected Object post_Methods(Method m, Object result)
Post interceptor. sets up the translator in relevant objects required for handling error translation in those objects.- Overrides:
post_Methodsin classBabelfishPreparedStatement- Returns:
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLExceptionTranslation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int)- Parameters:
parameterIndex-sqlType-- Throws:
SQLException- See Also:
CallableStatement.registerOutParameter(int, int)
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLExceptionTranslation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, int)- Parameters:
parameterIndex-sqlType-scale-- Throws:
SQLException- See Also:
CallableStatement.registerOutParameter(int, int, int)
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLExceptionTranslation compliant implementation of java.sql.CallableStatement#registerOutParameter(int, int, java.lang.String)- Parameters:
parameterIndex-sqlType-typeName-- Throws:
SQLException- See Also:
CallableStatement.registerOutParameter(int, int, java.lang.String)
-
-