Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.jdbc
Interface BrokeredConnectionControl  view BrokeredConnectionControl download BrokeredConnectionControl.java


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.


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.


checkSavepoint

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


checkRollback

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


checkCommit

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


checkHoldCursors

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


closingConnection

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


wrapStatement

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


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.


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.


setDrdaID

public void setDrdaID(java.lang.String drdaID)
Set drdaID of underlying 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


getPrepareIsolation

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