public class TransactionManagerImpl
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
TransactionManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Create a new transaction and associate it with the thread.
|
void |
commit()
Commit the transaction.
|
void |
destroy()
Handles the case where a class loader is dropped.
|
void |
flush()
Flushes the log stream (primarily for QA).
|
TransactionImpl |
getCurrent()
Returns the current TransactionImpl, creating if necessary.
|
static TransactionManagerImpl |
getInstance()
Returns the local transaction manager.
|
static TransactionManagerImpl |
getLocal()
Returns the local transaction manager.
|
int |
getStatus()
Returns the transaction's status
|
TransactionSynchronizationRegistry |
getSyncRegistry()
Returns the synchronization registry
|
long |
getTimeout()
Gets the timeout.
|
TransactionImpl |
getTransaction()
Returns the transaction for the current thread.
|
void |
recover(javax.transaction.xa.XAResource xaRes)
Returns the corresponding user transaction.
|
void |
resume(Transaction tobj)
Resume the transaction.
|
void |
rollback()
Rollback the transaction.
|
void |
setRollbackOnly()
Force any completion to be a rollback.
|
void |
setRollbackOnly(java.lang.Exception e)
Force any completion to be a rollback.
|
void |
setTimeout(Period timeout)
Sets the timeout.
|
void |
setTransactionTimeout(int seconds)
sets the timeout for the transaction
|
void |
setXALogManager(AbstractXALogManager xaLogManager)
Sets the XA log manager.
|
Transaction |
suspend()
Suspend the transaction.
|
void |
testClear()
Clearing for test purposes.
|
java.lang.String |
toString() |
public static TransactionManagerImpl getInstance()
public static TransactionManagerImpl getLocal()
public void setTimeout(Period timeout)
public long getTimeout()
public void setXALogManager(AbstractXALogManager xaLogManager)
public TransactionSynchronizationRegistry getSyncRegistry()
public void begin()
throws NotSupportedException,
SystemException
NotSupportedExceptionSystemExceptionpublic TransactionImpl getTransaction()
public Transaction suspend()
throws SystemException
SystemExceptionpublic void resume(Transaction tobj)
throws javax.transaction.InvalidTransactionException,
SystemException
javax.transaction.InvalidTransactionExceptionSystemExceptionpublic void setRollbackOnly()
throws SystemException
SystemExceptionpublic void setRollbackOnly(java.lang.Exception e)
public int getStatus()
throws SystemException
SystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
SystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSystemExceptionpublic void rollback()
public TransactionImpl getCurrent()
public void recover(javax.transaction.xa.XAResource xaRes)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic void flush()
public void destroy()
public void testClear()
public java.lang.String toString()
toString in class java.lang.Object