Package org.apache.derby.iapi.jdbc
Interface BrokeredStatementControl
- All Known Implementing Classes:
XAStatementControl
public interface BrokeredStatementControl
Provides control over a BrokeredStatement, BrokeredPreparedStatement or BrokeredCallableStatement
-
Method Summary
Modifier and TypeMethodDescriptionint
checkHoldCursors
(int holdability) Can cursors be held across commits.void
Close the real JDBC CallableStatement when this is controlling a CallableStatement.void
Close the real JDBC CallableStatement when this is controlling a PreparedStatement.void
Close the real JDBC Statement when this is controlling a Statement.Return the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.Return the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.Return the real JDBC statement for the brokered statement when this is controlling a Statement.wrapResultSet
(Statement s, ResultSet rs) Optionally wrap a returned ResultSet in another ResultSet.
-
Method Details
-
checkHoldCursors
Can cursors be held across commits. Returns the holdability that should be used which may be different from the passed in holdabilty.- Throws:
SQLException
-
closeRealStatement
Close the real JDBC Statement when this is controlling a Statement.- Throws:
SQLException
-
closeRealCallableStatement
Close the real JDBC CallableStatement when this is controlling a CallableStatement.- Throws:
SQLException
-
closeRealPreparedStatement
Close the real JDBC CallableStatement when this is controlling a PreparedStatement.- Throws:
SQLException
-
getRealStatement
Return the real JDBC statement for the brokered statement when this is controlling a Statement.- Throws:
SQLException
-
getRealPreparedStatement
Return the real JDBC PreparedStatement for the brokered statement when this is controlling a PreparedStatement.- Throws:
SQLException
-
getRealCallableStatement
Return the real JDBC CallableStatement for the brokered statement when this is controlling a CallableStatement.- Throws:
SQLException
-
wrapResultSet
Optionally wrap a returned ResultSet in another ResultSet.- Parameters:
s
- Statement that created the ResultSet.
-