public final class LocalTransaction extends AbstractTransaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
boolean |
equals(Object obj) |
String |
getParentName()
Get the name of the node which initiated the transaction.
|
<T> T |
getProviderInterface(Class<T> providerInterfaceType)
Get a provider-specific interface from this transaction.
|
Object |
getResource(Object key) |
int |
getStatus() |
int |
getTransactionTimeout()
Get the transaction timeout that was in force when the transaction began.
|
Xid |
getXid()
Get the XID of the local transaction.
|
int |
hashCode() |
boolean |
isImported()
Determine if this transaction was imported.
|
void |
putResource(Object key,
Object value) |
Object |
putResourceIfAbsent(Object key,
Object value) |
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setRollbackOnly() |
String |
toString() |
getEstimatedRemainingTime, performAction, performConsumer, performConsumer, performConsumer, performFunction, performFunction, performSupplier, performToIntFunction, performToIntFunction, registerAssociationListenerpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException
commit in interface Transactioncommit in class AbstractTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface Transactionrollback in class AbstractTransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionsetRollbackOnly in class AbstractTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
SystemExceptionpublic int getTransactionTimeout()
AbstractTransactiongetTransactionTimeout in class AbstractTransactionpublic boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
IllegalStateExceptionSystemExceptionpublic void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
public String getParentName()
null if it could not be determinedpublic Xid getXid()
null)public Object getResource(Object key) throws NullPointerException
getResource in class AbstractTransactionNullPointerExceptionpublic void putResource(Object key, Object value) throws NullPointerException
putResource in class AbstractTransactionNullPointerExceptionpublic Object putResourceIfAbsent(Object key, Object value) throws IllegalArgumentException
putResourceIfAbsent in class AbstractTransactionIllegalArgumentExceptionpublic boolean isImported()
true if the transaction was imported, false if it was initiated locallypublic <T> T getProviderInterface(Class<T> providerInterfaceType)
AbstractTransactiongetProviderInterface in class AbstractTransactionT - the provider interface typeproviderInterfaceType - the provider interface type class (must not be null)null if the given type isn't supported by this transaction's providerCopyright © 2019 JBoss by Red Hat. All rights reserved.