1 25 package com.lutris.appserver.server.sql; 26 27 import java.sql.SQLException ; 28 29 69 public interface DBTransaction { 70 71 77 public void update(Transaction transaction); 78 79 85 public void delete(Transaction transaction); 86 87 93 public void insert(Transaction transaction); 94 95 100 public void commit() throws SQLException ; 101 102 108 public void rollback() throws SQLException ; 109 110 116 public void release(); 117 118 126 public boolean handleException(SQLException e); 127 128 138 public Transaction getDO (Transaction transaction); 139 140 151 public Transaction getDO (Transaction transaction, int action); 152 153 157 162 public String getDatabaseName(); 163 164 169 public void setDatabaseName(String dbName); 170 171 174 public void write() throws SQLException ; 175 176 179 public void lockDO(Transaction cdo) throws SQLException ; 180 181 188 public DBQuery createQuery() throws SQLException ; 189 190 193 public boolean preventCacheQueries(); 194 } 195 | Popular Tags |