1 23 24 package javax.transaction; 25 26 import java.lang.IllegalArgumentException ; 27 import java.lang.IllegalStateException ; 28 import java.lang.SecurityException ; 29 30 34 public interface TransactionManager { 35 36 47 public void begin() throws NotSupportedException , SystemException ; 48 49 74 public void commit() throws RollbackException , 75 HeuristicMixedException , HeuristicRollbackException , SecurityException , 76 IllegalStateException , SystemException ; 77 78 89 public int getStatus() throws SystemException ; 90 91 102 public Transaction getTransaction() throws SystemException ; 103 104 122 public void resume(Transaction tobj) 123 throws InvalidTransactionException , IllegalStateException , 124 SystemException ; 125 126 141 public void rollback() throws IllegalStateException , SecurityException , 142 SystemException ; 143 144 156 public void setRollbackOnly() throws IllegalStateException , SystemException ; 157 158 173 public void setTransactionTimeout(int seconds) throws SystemException ; 174 175 189 public Transaction suspend() throws SystemException ; 190 } 191 | Popular Tags |