Package org.apache.derby.iapi.jdbc
Interface BrokeredStatementControl
-
- All Known Implementing Classes:
XAStatementControl
public interface BrokeredStatementControlProvides control over a BrokeredStatement, BrokeredPreparedStatement or BrokeredCallableStatement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcheckHoldCursors(int holdability)Can cursors be held across commits.voidcloseRealCallableStatement()Close the real JDBC CallableStatement when this is controlling a CallableStatement.voidcloseRealPreparedStatement()Close the real JDBC CallableStatement when this is controlling a PreparedStatement.voidcloseRealStatement()Close the real JDBC Statement when this is controlling a Statement.java.sql.CallableStatementgetRealCallableStatement()Return the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.java.sql.PreparedStatementgetRealPreparedStatement()Return the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.java.sql.StatementgetRealStatement()Return the real JDBC statement for the brokered statement when this is controlling a Statement.java.sql.ResultSetwrapResultSet(java.sql.Statement s, java.sql.ResultSet rs)Optionally wrap a returned ResultSet in another ResultSet.
-
-
-
Method Detail
-
checkHoldCursors
int checkHoldCursors(int holdability) throws java.sql.SQLExceptionCan cursors be held across commits. Returns the holdability that should be used which may be different from the passed in holdabilty.- Throws:
java.sql.SQLException
-
closeRealStatement
void closeRealStatement() throws java.sql.SQLExceptionClose the real JDBC Statement when this is controlling a Statement.- Throws:
java.sql.SQLException
-
closeRealCallableStatement
void closeRealCallableStatement() throws java.sql.SQLExceptionClose the real JDBC CallableStatement when this is controlling a CallableStatement.- Throws:
java.sql.SQLException
-
closeRealPreparedStatement
void closeRealPreparedStatement() throws java.sql.SQLExceptionClose the real JDBC CallableStatement when this is controlling a PreparedStatement.- Throws:
java.sql.SQLException
-
getRealStatement
java.sql.Statement getRealStatement() throws java.sql.SQLExceptionReturn the real JDBC statement for the brokered statement when this is controlling a Statement.- Throws:
java.sql.SQLException
-
getRealPreparedStatement
java.sql.PreparedStatement getRealPreparedStatement() throws java.sql.SQLExceptionReturn the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.- Throws:
java.sql.SQLException
-
getRealCallableStatement
java.sql.CallableStatement getRealCallableStatement() throws java.sql.SQLExceptionReturn the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.- Throws:
java.sql.SQLException
-
wrapResultSet
java.sql.ResultSet wrapResultSet(java.sql.Statement s, java.sql.ResultSet rs)Optionally wrap a returned ResultSet in another ResultSet.- Parameters:
s- Statement that created the ResultSet.
-
-