Package oracle.jdbc.babelfish
Class BabelfishStatement
java.lang.Object
oracle.jdbc.babelfish.BabelfishGenericProxy
oracle.jdbc.babelfish.BabelfishStatement
- Direct Known Subclasses:
BabelfishPreparedStatement
Proxy Superclass for java.sql.Statement interface. It is used
by the Oracle JDBC proxy library to proxify java.sql.Statement objects
to support the auto translation features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTranslation compliant implementation of java.sql.Statement#addBatch(java.lang.String)booleanTranslation compliant implementation of java.sql.Statement#execute(java.lang.String)booleanTranslation compliant implementation of java.sql.Statement#execute(java.lang.String, int)booleanTranslation compliant implementation of java.sql.Statement#execute(java.lang.String, int[])booleanTranslation compliant implementation of java.sql.Statement#execute(java.lang.String, java.lang.String[])executeQuery(String sql) Translation compliant implementation of java.sql.Statement#executeQuery(java.lang.String)intexecuteUpdate(String sql) Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String)intexecuteUpdate(String sql, int autoGeneratedKeys) Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, int)intexecuteUpdate(String sql, int[] columnIndexes) Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, int[])intexecuteUpdate(String sql, String[] columnNames) Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, java.lang.String[])protected abstract Objectprotected abstract Objectprotected Objectpost_Methods(Method m, Object result) Post method interceptor.protected abstract Objectprotected ObjecttranslateError(Method m, SQLException ex) Error interceptor.
-
Constructor Details
-
BabelfishStatement
public BabelfishStatement()
-
-
Method Details
-
getCreator
- Specified by:
getCreatorin classBabelfishGenericProxy- Returns:
-
getDelegate
- Specified by:
getDelegatein classBabelfishGenericProxy- Returns:
-
proxify
-
translateError
Error interceptor. Handles the translation of error.- Overrides:
translateErrorin classBabelfishGenericProxy- Parameters:
m-ex-- Returns:
- Throws:
SQLException
-
post_Methods
Post method interceptor. Sets the translator in the returning object if the returning object is a child of BabelfishGenericProxy- Overrides:
post_Methodsin classBabelfishGenericProxy- Parameters:
m-result-- Returns:
-
addBatch
Translation compliant implementation of java.sql.Statement#addBatch(java.lang.String)- Parameters:
sql-- Throws:
SQLException- See Also:
-
execute
Translation compliant implementation of java.sql.Statement#execute(java.lang.String)- Parameters:
sql-- Returns:
- Throws:
SQLException- See Also:
-
execute
Translation compliant implementation of java.sql.Statement#execute(java.lang.String, int)- Parameters:
sql-autoGeneratedKeys-- Returns:
- Throws:
SQLException- See Also:
-
execute
Translation compliant implementation of java.sql.Statement#execute(java.lang.String, int[])- Parameters:
sql-columnIndexes-- Returns:
- Throws:
SQLException- See Also:
-
execute
Translation compliant implementation of java.sql.Statement#execute(java.lang.String, java.lang.String[])- Parameters:
sql-columnNames-- Returns:
- Throws:
SQLException- See Also:
-
executeQuery
Translation compliant implementation of java.sql.Statement#executeQuery(java.lang.String)- Parameters:
sql-- Returns:
- Throws:
SQLException- See Also:
-
executeUpdate
Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String)- Parameters:
sql-- Returns:
- Throws:
SQLException- See Also:
-
executeUpdate
Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, int)- Parameters:
sql-autoGeneratedKeys-- Returns:
- Throws:
SQLException- See Also:
-
executeUpdate
Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, int[])- Parameters:
sql-columnIndexes-- Returns:
- Throws:
SQLException- See Also:
-
executeUpdate
Translation compliant implementation of java.sql.Statement#executeUpdate(java.lang.String, java.lang.String[])- Parameters:
sql-columnNames-- Returns:
- Throws:
SQLException- See Also:
-