DefaultTransaction
public interface Transaction
Modifier and Type | Method | Description |
---|---|---|
void |
commit() |
Commit the transaction.
|
boolean |
delistResource(XAResource xaResource,
int flag) |
Delist the XA resource.
|
boolean |
enlistResource(XAResource xaResource) |
Enlist the XA resource.
|
int |
getStatus() |
Get the status.
|
void |
registerSynchronization(Synchronization synchronization) |
Register the synchronization object.
|
void |
rollback() |
Rollback the transaction.
|
void |
setRollbackOnly() |
Set for rollback only.
|
void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
RollbackException
- when the transaction has been rolled back.HeuristicMixedException
- when part of the transaction has been
rolled back.HeuristicRollbackException
- when all of the transaction has been
rolled back.SecurityException
- when it was not allowed to commit.IllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.boolean delistResource(XAResource xaResource, int flag) throws IllegalStateException, SystemException
xaResource
- the XA resource.flag
- the TMxxx flagIllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.boolean enlistResource(XAResource xaResource) throws RollbackException, IllegalStateException, SystemException
xaResource
- the XA resource.RollbackException
- when the transaction has been marked for
rollback.IllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.int getStatus() throws SystemException
SystemException
- when a serious error occurs.void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
synchronization
- the synchronization object.RollbackException
- when the transaction has been marked for
rollback.IllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.void rollback() throws IllegalStateException, SystemException
IllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.void setRollbackOnly() throws IllegalStateException, SystemException
IllegalStateException
- when the transaction is inactive.SystemException
- when a serious error occurs.Copyright © 2020 Piranha Cloud. All rights reserved.