1 21 22 package org.apache.derby.iapi.sql.execute; 23 24 import org.apache.derby.iapi.services.context.Context; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.sql.ResultSet; 29 30 37 public interface ExecutionContext extends Context { 38 39 43 String CONTEXT_ID = "ExecutionContext"; 44 45 46 47 public static final int UNSPECIFIED_ISOLATION_LEVEL = 0; 48 public static final int READ_UNCOMMITTED_ISOLATION_LEVEL = 1; 49 public static final int READ_COMMITTED_ISOLATION_LEVEL = 2; 50 public static final int REPEATABLE_READ_ISOLATION_LEVEL = 3; 51 public static final int SERIALIZABLE_ISOLATION_LEVEL = 4; 52 53 public static final int[] CS_TO_JDBC_ISOLATION_LEVEL_MAP = { 54 java.sql.Connection.TRANSACTION_NONE, java.sql.Connection.TRANSACTION_READ_UNCOMMITTED, java.sql.Connection.TRANSACTION_READ_COMMITTED, java.sql.Connection.TRANSACTION_REPEATABLE_READ, java.sql.Connection.TRANSACTION_SERIALIZABLE }; 60 61 public static final String [][] CS_TO_SQL_ISOLATION_MAP = { 62 { " "}, { "UR", "DIRTY READ", "READ UNCOMMITTED"}, 64 { "CS", "CURSOR STABILITY", "READ COMMITTED"}, 65 { "RS"}, { "RR", "REPEATABLE READ", "SERIALIZABLE"} 67 }; 68 69 75 ResultSetFactory getResultSetFactory(); 76 77 85 ResultSetStatisticsFactory getResultSetStatisticsFactory() 86 throws StandardException; 87 88 94 ExecutionFactory getExecutionFactory(); 95 96 102 void beginStatement(ResultSet sourceRS) throws StandardException; 103 104 108 void endStatement() throws StandardException; 109 110 125 public Object [] siftForeignKeys( Object [] fullList ) throws StandardException; 126 127 140 public Object siftTriggers(Object triggerInfo) throws StandardException; 141 } 142 | Popular Tags |