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
Transaction
Synchronization
callback with this transaction.registerSynchronization
in interface Transaction
RollbackException
- 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
Transaction
commit
in interface Transaction
UnsupportedOperationException
public boolean delistResource(XAResource resource, int i) throws UnsupportedOperationException
Transaction
delistResource
in interface Transaction
true
if the resource could be delisted from
this transaction, otherwise false
.UnsupportedOperationException
public boolean enlistResource(XAResource resource) throws UnsupportedOperationException
Transaction
enlistResource
in interface Transaction
true
if the resource could be enlisted with
this transaction, otherwise false
.UnsupportedOperationException
public int getStatus()
Transaction
getStatus
in interface Transaction
Status
constants.public void rollback() throws UnsupportedOperationException
Transaction
rollback
in interface Transaction
UnsupportedOperationException
public void setRollbackOnly() throws UnsupportedOperationException
Transaction
setRollbackOnly
in interface Transaction
UnsupportedOperationException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.