1 21 22 package org.apache.derby.iapi.jdbc; 23 24 import java.sql.SQLException ; 25 import java.sql.Statement ; 26 import java.sql.PreparedStatement ; 27 import java.sql.CallableStatement ; 28 29 32 public interface BrokeredConnectionControl 33 { 34 37 public EngineConnection getRealConnection() throws SQLException ; 38 39 43 public void notifyException(SQLException sqle); 44 45 46 49 public void checkAutoCommit(boolean autoCommit) throws SQLException ; 50 51 54 public void checkSavepoint() throws SQLException ; 55 56 59 public void checkRollback() throws SQLException ; 60 61 64 public void checkCommit() throws SQLException ; 65 66 71 public int checkHoldCursors(int holdability, boolean downgrade) 72 throws SQLException ; 73 74 77 public boolean isIsolationLevelSetUsingSQLorJDBC() throws SQLException ; 78 84 public void resetIsolationLevelFlag() throws SQLException ; 85 86 90 public boolean closingConnection() throws SQLException ; 91 92 95 public Statement wrapStatement(Statement realStatement) throws SQLException ; 96 97 100 public PreparedStatement wrapStatement(PreparedStatement realStatement, String sql, Object generateKeys) throws SQLException ; 101 102 105 public CallableStatement wrapStatement(CallableStatement realStatement, String sql) throws SQLException ; 106 107 112 public void onStatementClose(PreparedStatement statement); 113 114 120 public void onStatementErrorOccurred(PreparedStatement statement,SQLException sqle); 121 122 } 123 | Popular Tags |