| Modifier and Type | Method and Description |
|---|---|
| public void | checkAutoCommit(boolean
New auto commit setting autoCommit)Allow control over setting auto commit mode. |
| public void | |
| public void | |
| public int | Returns: whether cursors can be held across commitsCurrent holdability holdability, boolean true to downgrade the holdability, false to throw an exception. downgrade)Can cursors be held across commits. |
| public void | |
| public void | |
| public boolean | Returns: true if getRealConnection().close() will be calledClose called on BrokeredConnection. |
| public EngineConnection | Returns: the real JDBC connectionReturn the real JDBC connection for the brokered connection. |
| public boolean | |
| public boolean | Returns: true if isolation level has been set by userReturns true if isolation level has been set using JDBC/SQL. |
| public void | notifyException(SQLException
A sql exception sqle)Notify the control class that a SQLException was thrown during a call on one of the brokered connection's methods. |
| public void | onStatementClose(PreparedStatement
PreparedStatement object on which the close event
occurred statement)Close called on the associated PreparedStatement object |
| public void | onStatementErrorOccurred(PreparedStatement
PreparedStatement object on which the
error occured statement, SQLException The SQLExeption that caused the error sqle)Error occurred on associated PreparedStatement object |
| public void | |
| public Statement | Returns: a wrapper statementThe original statement realStatement)Optionally wrap a Statement with another Statement. |
| public PreparedStatement | Returns: a wrapper statementThe original statement realStatement, String The sql to use sql, Object Key generation information generateKeys)Optionally wrap a PreparedStatement with another PreparedStatement. |
| public CallableStatement | Returns: a wrapper callable statementThe original statement realStatement, String The sql text sql)Optionally wrap a CallableStatement with an CallableStatement. |
| checkAutoCommit | back to summary |
|---|---|
| public void checkAutoCommit(boolean autoCommit) throws SQLException Allow control over setting auto commit mode.
| |
| checkClose | back to summary |
|---|---|
| public void checkClose() throws SQLException Check if the brokered connection can be closed.
| |
| checkCommit | back to summary |
|---|---|
| public void checkCommit() throws SQLException Allow control over calling commit.
| |
| checkHoldCursors | back to summary |
|---|---|
| public int checkHoldCursors(int holdability, boolean downgrade) throws SQLException Can cursors be held across commits.
| |
| checkRollback | back to summary |
|---|---|
| public void checkRollback() throws SQLException Allow control over calling rollback.
| |
| checkSavepoint | back to summary |
|---|---|
| public void checkSavepoint() throws SQLException Allow control over creating a Savepoint (JDBC 3.0)
| |
| closingConnection | back to summary |
|---|---|
| public boolean closingConnection() throws SQLException Close called on BrokeredConnection. If this call returns true then getRealConnection().close() will be called.
| |
| getRealConnection | back to summary |
|---|---|
| public EngineConnection getRealConnection() throws SQLException Return the real JDBC connection for the brokered connection.
| |
| isInGlobalTransaction | back to summary |
|---|---|
| public boolean isInGlobalTransaction() Is this a global transaction
| |
| isIsolationLevelSetUsingSQLorJDBC | back to summary |
|---|---|
| public boolean isIsolationLevelSetUsingSQLorJDBC() throws SQLException Returns true if isolation level has been set using JDBC/SQL.
| |
| notifyException | back to summary |
|---|---|
| public void notifyException(SQLException sqle) Notify the control class that a SQLException was thrown during a call on one of the brokered connection's methods.
| |
| onStatementClose | back to summary |
|---|---|
| public void onStatementClose(PreparedStatement statement) Close called on the associated PreparedStatement object
| |
| onStatementErrorOccurred | back to summary |
|---|---|
| public void onStatementErrorOccurred(PreparedStatement statement, SQLException sqle) Error occurred on associated PreparedStatement object
| |
| resetIsolationLevelFlag | back to summary |
|---|---|
| public void resetIsolationLevelFlag() throws SQLException Reset the isolation level flag used to keep state in BrokeredConnection. It will get set to true when isolation level is set using JDBC/SQL. It will get reset to false at the start and the end of a global transaction.
| |
| wrapStatement | back to summary |
|---|---|
| public Statement wrapStatement(Statement realStatement) throws SQLException Optionally wrap a Statement with another Statement.
| |
| wrapStatement | back to summary |
|---|---|
| public PreparedStatement wrapStatement(PreparedStatement realStatement, String sql, Object generateKeys) throws SQLException Optionally wrap a PreparedStatement with another PreparedStatement.
| |
| wrapStatement | back to summary |
|---|---|
| public CallableStatement wrapStatement(CallableStatement realStatement, String sql) throws SQLException Optionally wrap a CallableStatement with an CallableStatement.
| |