1 22 package org.jboss.tm.usertx.interfaces; 23 24 import java.rmi.Remote ; 25 import java.rmi.RemoteException ; 26 27 import javax.transaction.UserTransaction ; 28 import javax.transaction.NotSupportedException ; 29 import javax.transaction.SystemException ; 30 import javax.transaction.RollbackException ; 31 import javax.transaction.HeuristicMixedException ; 32 import javax.transaction.HeuristicRollbackException ; 33 34 35 41 public interface UserTransactionSession 42 extends Remote 43 { 44 47 public void destroy() 48 throws RemoteException ; 49 50 57 public Object begin(int timeout) 58 throws RemoteException , 59 NotSupportedException , 60 SystemException ; 61 62 67 public void commit(Object tpc) 68 throws RemoteException , 69 RollbackException , 70 HeuristicMixedException , 71 HeuristicRollbackException , 72 SecurityException , 73 IllegalStateException , 74 SystemException ; 75 76 81 public void rollback(Object tpc) 82 throws RemoteException , 83 SecurityException , 84 IllegalStateException , 85 SystemException ; 86 87 92 public void setRollbackOnly(Object tpc) 93 throws RemoteException , 94 IllegalStateException , 95 SystemException ; 96 97 102 public int getStatus(Object tpc) 103 throws RemoteException , 104 SystemException ; 105 } 106 | Popular Tags |