|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.transaction.TransactionManagerImpl
public class TransactionManagerImpl
Implementation of the transaction manager.
| Constructor Summary | |
|---|---|
TransactionManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
begin()
Create a new transaction and associate it with the thread. |
void |
classLoaderDestroy(DynamicClassLoader loader)
Handles the case where a class loader is dropped. |
void |
classLoaderInit(DynamicClassLoader loader)
Handles the case where a class loader has completed initialization |
void |
commit()
Commit the transaction. |
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 |
long |
getTimeout()
Gets the timeout. |
Transaction |
getTransaction()
Returns the transaction for the current thread. |
void |
recover(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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionManagerImpl()
| Method Detail |
|---|
public static TransactionManagerImpl getInstance()
public static TransactionManagerImpl getLocal()
public void setTimeout(Period timeout)
public long getTimeout()
public void setXALogManager(AbstractXALogManager xaLogManager)
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedException
SystemException
public Transaction getTransaction()
throws SystemException
getTransaction in interface TransactionManagerSystemException
public Transaction suspend()
throws SystemException
suspend in interface TransactionManagerSystemException
public void resume(Transaction tobj)
throws InvalidTransactionException,
SystemException
resume in interface TransactionManagerInvalidTransactionException
SystemException
public void setRollbackOnly()
throws SystemException
setRollbackOnly in interface TransactionManagerSystemExceptionpublic void setRollbackOnly(java.lang.Exception e)
public int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemException
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException
commit in interface TransactionManagerRollbackException
HeuristicMixedException
HeuristicRollbackException
SystemExceptionpublic void rollback()
rollback in interface TransactionManagerpublic TransactionImpl getCurrent()
public void recover(XAResource xaRes)
throws XAException
XAExceptionpublic void flush()
public void classLoaderInit(DynamicClassLoader loader)
classLoaderInit in interface ClassLoaderListenerpublic void classLoaderDestroy(DynamicClassLoader loader)
classLoaderDestroy in interface ClassLoaderListenerpublic void testClear()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||