EmbedPooledConnection
, EmbedXAConnection
public interface BrokeredConnectionControl
Modifier and Type | Method | Description |
---|---|---|
void |
checkAutoCommit(boolean autoCommit) |
Allow control over setting auto commit mode.
|
void |
checkClose() |
Check if the brokered connection can be closed.
|
void |
checkCommit() |
Allow control over calling commit.
|
int |
checkHoldCursors(int holdability,
boolean downgrade) |
Can cursors be held across commits.
|
void |
checkRollback() |
Allow control over calling rollback.
|
void |
checkSavepoint() |
Allow control over creating a Savepoint (JDBC 3.0)
|
boolean |
closingConnection() |
Close called on BrokeredConnection.
|
EngineConnection |
getRealConnection() |
Return the real JDBC connection for the brokered connection.
|
boolean |
isInGlobalTransaction() |
Is this a global transaction
|
boolean |
isIsolationLevelSetUsingSQLorJDBC() |
Returns true if isolation level has been set using JDBC/SQL.
|
void |
notifyException(java.sql.SQLException sqle) |
Notify the control class that a SQLException was thrown
during a call on one of the brokered connection's methods.
|
void |
onStatementClose(java.sql.PreparedStatement statement) |
Close called on the associated PreparedStatement object
|
void |
onStatementErrorOccurred(java.sql.PreparedStatement statement,
java.sql.SQLException sqle) |
Error occurred on associated PreparedStatement object
|
void |
resetIsolationLevelFlag() |
Reset the isolation level flag used to keep state in
BrokeredConnection.
|
java.sql.CallableStatement |
wrapStatement(java.sql.CallableStatement realStatement,
java.lang.String sql) |
Optionally wrap a CallableStatement with an CallableStatement.
|
java.sql.PreparedStatement |
wrapStatement(java.sql.PreparedStatement realStatement,
java.lang.String sql,
java.lang.Object generateKeys) |
Optionally wrap a PreparedStatement with another PreparedStatement.
|
java.sql.Statement |
wrapStatement(java.sql.Statement realStatement) |
Optionally wrap a Statement with another Statement.
|
EngineConnection getRealConnection() throws java.sql.SQLException
java.sql.SQLException
void notifyException(java.sql.SQLException sqle)
void checkAutoCommit(boolean autoCommit) throws java.sql.SQLException
java.sql.SQLException
void checkSavepoint() throws java.sql.SQLException
java.sql.SQLException
void checkRollback() throws java.sql.SQLException
java.sql.SQLException
void checkCommit() throws java.sql.SQLException
java.sql.SQLException
void checkClose() throws java.sql.SQLException
java.sql.SQLException
- if it is not allowed to call close on the brokered
connectionint checkHoldCursors(int holdability, boolean downgrade) throws java.sql.SQLException
downgrade
- true to downgrade the holdability,
false to throw an exception.java.sql.SQLException
boolean isIsolationLevelSetUsingSQLorJDBC() throws java.sql.SQLException
java.sql.SQLException
void resetIsolationLevelFlag() throws java.sql.SQLException
java.sql.SQLException
boolean isInGlobalTransaction()
boolean closingConnection() throws java.sql.SQLException
java.sql.SQLException
java.sql.Statement wrapStatement(java.sql.Statement realStatement) throws java.sql.SQLException
java.sql.SQLException
java.sql.PreparedStatement wrapStatement(java.sql.PreparedStatement realStatement, java.lang.String sql, java.lang.Object generateKeys) throws java.sql.SQLException
java.sql.SQLException
java.sql.CallableStatement wrapStatement(java.sql.CallableStatement realStatement, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
void onStatementClose(java.sql.PreparedStatement statement)
statement
- PreparedStatement object on which the close event
occurredvoid onStatementErrorOccurred(java.sql.PreparedStatement statement, java.sql.SQLException sqle)
statement
- PreparedStatement object on which the
error occuredsqle
- The SQLExeption that caused the errorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.