public interface Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the transaction.
|
boolean |
delistResource(XAResource xaRes,
int flag)
Delists a resource from the transaction.
|
boolean |
enlistResource(XAResource xaRes)
Enlists a resource with the transaction.
|
int |
getStatus()
Returns the transaction's status.
|
void |
registerSynchronization(Synchronization sync)
Registers a synchronization.
|
void |
rollback()
Rolls the transaction back.
|
void |
setRollbackOnly()
Marks the transaction as rollback only.
|
int getStatus()
throws SystemException
SystemExceptionboolean enlistResource(XAResource xaRes) throws java.lang.IllegalStateException, RollbackException, SystemException
java.lang.IllegalStateExceptionRollbackExceptionSystemExceptionboolean delistResource(XAResource xaRes, int flag) throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateExceptionSystemExceptionvoid registerSynchronization(Synchronization sync) throws java.lang.IllegalStateException, RollbackException, SystemException
java.lang.IllegalStateExceptionRollbackExceptionSystemExceptionvoid setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemExceptionvoid commit()
throws java.lang.IllegalStateException,
RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
SystemException
java.lang.IllegalStateExceptionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionjava.lang.SecurityExceptionSystemExceptionvoid rollback()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemException