1 21 package oracle.toplink.essentials.internal.databaseaccess; 23 24 import java.util.Vector ; 25 import oracle.toplink.essentials.exceptions.DatabaseException; 26 import oracle.toplink.essentials.internal.sessions.AbstractSession; 27 import oracle.toplink.essentials.internal.sessions.AbstractRecord; 28 import oracle.toplink.essentials.sessions.Login; 29 import oracle.toplink.essentials.queryframework.Call; 30 31 53 public interface Accessor extends Cloneable { 54 55 58 public void afterJTSTransaction(); 59 60 63 void beginTransaction(AbstractSession session) throws DatabaseException; 64 65 68 Object clone(); 69 70 75 void closeConnection(); 76 77 80 void commitTransaction(AbstractSession session) throws DatabaseException; 81 82 86 void connect(Login login, AbstractSession session) throws DatabaseException; 87 88 92 void decrementCallCount(); 93 94 97 void disconnect(AbstractSession session) throws DatabaseException; 98 99 106 Object executeCall(Call call, AbstractRecord translationRow, AbstractSession session) throws DatabaseException; 107 108 116 void flushSelectCalls(AbstractSession session); 117 118 122 int getCallCount(); 123 124 128 Vector getColumnInfo(String catalog, String schema, String tableName, String columnName, AbstractSession session) throws DatabaseException; 129 130 134 java.sql.Connection getConnection(); 135 136 140 Object getDatasourceConnection(); 141 142 146 Vector getTableInfo(String catalog, String schema, String tableName, String [] types, AbstractSession session) throws DatabaseException; 147 148 152 void incrementCallCount(AbstractSession session); 153 154 157 boolean isConnected(); 158 159 163 void reestablishConnection(AbstractSession session) throws DatabaseException; 164 165 168 void rollbackTransaction(AbstractSession session) throws DatabaseException; 169 170 174 boolean usesExternalTransactionController(); 175 176 182 public void writesCompleted(AbstractSession session); 183 } 184 | Popular Tags |