public class WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter extends Object implements Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Attempt to commit this transaction.
|
boolean |
delistResource(XAResource resource,
int i)
Delist an XA resource from this transaction.
|
boolean |
enlistResource(XAResource resource)
Enlist an XA resource with this transaction.
|
boolean |
equals(Object other) |
int |
getStatus()
Get the status of the transaction.
|
int |
hashCode() |
void |
registerSynchronization(Synchronization synchronization)
Register a
Synchronization callback with this transaction. |
void |
rollback()
Rolls back this transaction.
|
void |
setRollbackOnly()
Mark the transaction so that the only possible outcome is a rollback.
|
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
TransactionSynchronization callback with this transaction.registerSynchronization in interface TransactionRollbackException - If the transaction is marked for rollback
only.IllegalStateException - If the transaction is in a state
where Synchronization callbacks cannot be registered.
This could be because the transaction is no longer active,
or because it is in the
prepared state.SystemException - If the transaction service fails in an
unexpected way.public void commit()
throws UnsupportedOperationException
Transactioncommit in interface TransactionUnsupportedOperationExceptionpublic boolean delistResource(XAResource resource, int i) throws UnsupportedOperationException
TransactiondelistResource in interface Transactiontrue if the resource could be delisted from
this transaction, otherwise false.UnsupportedOperationExceptionpublic boolean enlistResource(XAResource resource) throws UnsupportedOperationException
TransactionenlistResource in interface Transactiontrue if the resource could be enlisted with
this transaction, otherwise false.UnsupportedOperationExceptionpublic int getStatus()
TransactiongetStatus in interface TransactionStatus constants.public void rollback()
throws UnsupportedOperationException
Transactionrollback in interface TransactionUnsupportedOperationExceptionpublic void setRollbackOnly()
throws UnsupportedOperationException
TransactionsetRollbackOnly in interface TransactionUnsupportedOperationExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.