public class WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter extends Object implements Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Complete the transaction represented by this Transaction object.
|
boolean |
delistResource(XAResource resource,
int i)
Disassociate the resource specified from the transaction associated
with the target Transaction object.
|
boolean |
enlistResource(XAResource resource)
Enlist the resource specified with the transaction associated with the
target Transaction object.
|
boolean |
equals(Object other) |
int |
getStatus()
Obtain the status of the transaction associated with the target
Transaction object.
|
int |
hashCode() |
void |
registerSynchronization(Synchronization synchronization)
Register a synchronization object for the transaction currently
associated with the target object.
|
void |
rollback()
Rollback the transaction represented by this Transaction object.
|
void |
setRollbackOnly()
Modify the transaction associated with the target object such that
the only possible outcome of the transaction is to roll back the
transaction.
|
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
TransactionregisterSynchronization in interface Transactionsynchronization - The Synchronization object for the transaction associated
with the target object.RollbackException - Thrown to indicate that
the transaction has been marked for rollback only.IllegalStateException - Thrown if the transaction in the
target object is in the prepared state or the transaction is
inactive.SystemException - Thrown if the transaction manager
encounters an unexpected error condition.public void commit()
throws UnsupportedOperationException
Transactioncommit in interface TransactionUnsupportedOperationExceptionpublic boolean delistResource(XAResource resource, int i) throws UnsupportedOperationException
TransactiondelistResource in interface Transactionresource - The XAResource object associated with the resource
(connection).i - One of the values of TMSUCCESS, TMSUSPEND, or TMFAIL.UnsupportedOperationExceptionpublic boolean enlistResource(XAResource resource) throws UnsupportedOperationException
TransactionenlistResource in interface Transactionresource - The XAResource object associated with the resource
(connection).UnsupportedOperationExceptionpublic int getStatus()
TransactiongetStatus in interface Transactionpublic void rollback()
throws UnsupportedOperationException
Transactionrollback in interface TransactionUnsupportedOperationExceptionpublic void setRollbackOnly()
throws UnsupportedOperationException
TransactionsetRollbackOnly in interface TransactionUnsupportedOperationExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.