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
SystemException
boolean enlistResource(XAResource xaRes) throws java.lang.IllegalStateException, RollbackException, SystemException
java.lang.IllegalStateException
RollbackException
SystemException
boolean delistResource(XAResource xaRes, int flag) throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateException
SystemException
void registerSynchronization(Synchronization sync) throws java.lang.IllegalStateException, RollbackException, SystemException
java.lang.IllegalStateException
RollbackException
SystemException
void setRollbackOnly() throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateException
SystemException
void commit() throws java.lang.IllegalStateException, RollbackException, HeuristicMixedException, HeuristicRollbackException, java.lang.SecurityException, SystemException
java.lang.IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
SystemException
void rollback() throws java.lang.IllegalStateException, SystemException
java.lang.IllegalStateException
SystemException