public class TestTransaction
extends java.lang.Object
implements javax.transaction.Transaction
Constructor and Description |
---|
TestTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
delistResource(javax.transaction.xa.XAResource xaResource,
int i) |
boolean |
enlistResource(javax.transaction.xa.XAResource xaResource) |
int |
getStatus() |
void |
registerSynchronization(javax.transaction.Synchronization synchronization) |
void |
rollback() |
void |
setRollbackOnly() |
java.lang.String |
toString() |
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, javax.transaction.SystemException
commit
in interface javax.transaction.Transaction
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
java.lang.SecurityException
javax.transaction.SystemException
public void rollback() throws java.lang.IllegalStateException, javax.transaction.SystemException
rollback
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
public void setRollbackOnly() throws java.lang.IllegalStateException, javax.transaction.SystemException
setRollbackOnly
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
public int getStatus() throws javax.transaction.SystemException
getStatus
in interface javax.transaction.Transaction
javax.transaction.SystemException
public boolean enlistResource(javax.transaction.xa.XAResource xaResource) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException
enlistResource
in interface javax.transaction.Transaction
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException
public boolean delistResource(javax.transaction.xa.XAResource xaResource, int i) throws java.lang.IllegalStateException, javax.transaction.SystemException
delistResource
in interface javax.transaction.Transaction
java.lang.IllegalStateException
javax.transaction.SystemException
public void registerSynchronization(javax.transaction.Synchronization synchronization) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemException
registerSynchronization
in interface javax.transaction.Transaction
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException
public java.lang.String toString()
toString
in class java.lang.Object