public class KunderaTransaction extends Object implements Transaction
javax.transaction.Transaction | Modifier and Type | Field and Description |
|---|---|
private Set<ResourceManager> |
implementors |
private static org.slf4j.Logger |
log
The Constant log.
|
private boolean |
setRollBackOnly |
private int |
status |
private int |
timeOutInMillis
The time out in millis.
|
| Constructor and Description |
|---|
KunderaTransaction(int timeOutInMillis)
Default constructor with timeout parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource paramXAResource,
int paramInt) |
boolean |
enlistResource(XAResource paramXAResource) |
int |
getStatus() |
int |
getTransactionTimeout() |
void |
registerSynchronization(Synchronization paramSynchronization) |
void |
rollback() |
(package private) void |
setImplementor(ResourceManager implementor) |
void |
setRollbackOnly() |
private Set<ResourceManager> implementors
private boolean setRollBackOnly
private int status
private int timeOutInMillis
private static final org.slf4j.Logger log
KunderaTransaction(int timeOutInMillis)
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource paramXAResource, int paramInt) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource paramXAResource) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization paramSynchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionvoid setImplementor(ResourceManager implementor)
public int getTransactionTimeout()
Copyright © 2015. All Rights Reserved.