1 23 24 package javax.transaction; 25 26 import javax.transaction.xa.XAResource ; 27 import java.lang.IllegalStateException ; 28 import java.lang.SecurityException ; 29 30 38 39 public interface Transaction { 40 41 64 public void commit() throws RollbackException , 65 HeuristicMixedException , HeuristicRollbackException , 66 SecurityException , IllegalStateException , SystemException ; 67 68 87 public boolean delistResource(XAResource xaRes, int flag) 88 throws IllegalStateException , SystemException ; 89 90 111 public boolean enlistResource(XAResource xaRes) 112 throws RollbackException , IllegalStateException , 113 SystemException ; 114 115 127 public int getStatus() throws SystemException ; 128 129 150 public void registerSynchronization(Synchronization sync) 151 throws RollbackException , IllegalStateException , 152 SystemException ; 153 154 165 public void rollback() throws IllegalStateException , SystemException ; 166 167 179 public void setRollbackOnly() throws IllegalStateException , 180 SystemException ; 181 182 } 183 | Popular Tags |