org.apache.derby.iapi.jdbc
Interface BrokeredConnectionControl

All Known Implementing Classes:
EmbedPooledConnection

public interface BrokeredConnectionControl

Provides control over a BrokeredConnection


Method Summary
 void checkAutoCommit(boolean autoCommit)
          Allow control over setting auto commit mode.
 void checkCommit()
          Allow control over calling commit.
 void checkHoldCursors(int holdability)
          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.
 int getPrepareIsolation()
          Get the internal isolation level to use for preparing statements.
 java.sql.Connection getRealConnection()
          Return the real JDBC connection for the brokered connection.
 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 setDrdaID(java.lang.String drdaID)
          Set drdaID of underlying connection
 void setPrepareIsolation(int level)
          Set the internal isolation level to use for preparing statements.
 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.
 

Method Detail

getRealConnection

public java.sql.Connection getRealConnection()
                                      throws java.sql.SQLException
Return the real JDBC connection for the brokered connection.

Throws:
java.sql.SQLException

notifyException

public 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.


checkAutoCommit

public void checkAutoCommit(boolean autoCommit)
                     throws java.sql.SQLException
Allow control over setting auto commit mode.

Throws:
java.sql.SQLException

checkSavepoint

public void checkSavepoint()
                    throws java.sql.SQLException
Allow control over creating a Savepoint (JDBC 3.0)

Throws:
java.sql.SQLException

checkRollback

public void checkRollback()
                   throws java.sql.SQLException
Allow control over calling rollback.

Throws:
java.sql.SQLException

checkCommit

public void checkCommit()
                 throws java.sql.SQLException
Allow control over calling commit.

Throws:
java.sql.SQLException

checkHoldCursors

public void checkHoldCursors(int holdability)
                      throws java.sql.SQLException
Can cursors be held across commits.

Throws:
java.sql.SQLException

closingConnection

public boolean closingConnection()
                          throws java.sql.SQLException
Close called on BrokeredConnection. If this call returns true then getRealConnection().close() will be called.

Throws:
java.sql.SQLException

wrapStatement

public java.sql.Statement wrapStatement(java.sql.Statement realStatement)
                                 throws java.sql.SQLException
Optionally wrap a Statement with another Statement.

Throws:
java.sql.SQLException

wrapStatement

public java.sql.PreparedStatement wrapStatement(java.sql.PreparedStatement realStatement,
                                                java.lang.String sql,
                                                java.lang.Object generateKeys)
                                         throws java.sql.SQLException
Optionally wrap a PreparedStatement with another PreparedStatement.

Throws:
java.sql.SQLException

wrapStatement

public java.sql.CallableStatement wrapStatement(java.sql.CallableStatement realStatement,
                                                java.lang.String sql)
                                         throws java.sql.SQLException
Optionally wrap a CallableStatement with an CallableStatement.

Throws:
java.sql.SQLException

setDrdaID

public void setDrdaID(java.lang.String drdaID)
Set drdaID of underlying connection

Parameters:
drdaID - - drdaId of connection

setPrepareIsolation

public void setPrepareIsolation(int level)
                         throws java.sql.SQLException
Set the internal isolation level to use for preparing statements. used for Network Server

Parameters:
level - - isolation level for prepared statements
Throws:
java.sql.SQLException

getPrepareIsolation

public int getPrepareIsolation()
                        throws java.sql.SQLException
Get the internal isolation level to use for preparing statements.

Returns:
prepare isolation level
Throws:
java.sql.SQLException

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.