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
Transaction
registerSynchronization
in interface Transaction
synchronization
- 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
Transaction
commit
in interface Transaction
UnsupportedOperationException
public boolean delistResource(XAResource resource, int i) throws UnsupportedOperationException
Transaction
delistResource
in interface Transaction
resource
- The XAResource object associated with the resource
(connection).i
- One of the values of TMSUCCESS, TMSUSPEND, or TMFAIL.UnsupportedOperationException
public boolean enlistResource(XAResource resource) throws UnsupportedOperationException
Transaction
enlistResource
in interface Transaction
resource
- The XAResource object associated with the resource
(connection).UnsupportedOperationException
public int getStatus()
Transaction
getStatus
in interface Transaction
public void rollback() throws UnsupportedOperationException
Transaction
rollback
in interface Transaction
UnsupportedOperationException
public void setRollbackOnly() throws UnsupportedOperationException
Transaction
setRollbackOnly
in interface Transaction
UnsupportedOperationException
Copyright © 2021 JBoss by Red Hat. All rights reserved.