|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.caucho.transaction.TransactionManagerImpl
Implementation of the transaction manager.
Constructor Summary | |
TransactionManagerImpl()
|
Method Summary | |
void |
begin()
Create a new transaction and associate it with the thread. |
void |
commit()
Commit the transaction. |
void |
delistResource(com.caucho.transaction.XAResource resource)
Remove a resource to the list of resources managed by the transaction. |
void |
enlistResource(com.caucho.transaction.XAResource resource)
Adds a resource to the list of resources managed by the transaction. |
java.lang.Object |
getResource(java.lang.Object key)
Gets the resource attached to the key. |
int |
getStatus()
Returns the transaction's status |
com.caucho.transaction.Transaction |
getTransaction()
Returns the transaction for the current thread. |
com.caucho.transaction.UserTransaction |
getUserTransaction()
Returns the corresponding user transaction. |
void |
putResource(java.lang.Object key,
java.lang.Object value)
Adds a resource to the map of keyed resources. |
void |
removeResourceKey(java.lang.Object key)
Removes a resource to the map of keyed resources. |
void |
resume(com.caucho.transaction.Transaction tobj)
Resume the transaction. |
void |
rollback()
Rollback the transaction. |
void |
setRandomSeed(long seed)
|
void |
setRollbackOnly()
Force any completion to be a rollback. |
void |
setTransactionTimeout(int seconds)
sets the timeout for the transaction |
com.caucho.transaction.Transaction |
suspend()
Suspend the transaction. |
java.lang.String |
toString()
|
Constructor Detail |
public TransactionManagerImpl()
Method Detail |
public void setRandomSeed(long seed)
public void begin() throws com.caucho.transaction.NotSupportedException, com.caucho.transaction.SystemException
public com.caucho.transaction.Transaction getTransaction() throws com.caucho.transaction.SystemException
public com.caucho.transaction.Transaction suspend() throws com.caucho.transaction.SystemException
public void resume(com.caucho.transaction.Transaction tobj) throws javax.transaction.InvalidTransactionException, com.caucho.transaction.SystemException
public void setRollbackOnly() throws com.caucho.transaction.SystemException
public int getStatus() throws com.caucho.transaction.SystemException
public void setTransactionTimeout(int seconds) throws com.caucho.transaction.SystemException
public void commit() throws com.caucho.transaction.RollbackException, com.caucho.transaction.HeuristicMixedException, com.caucho.transaction.HeuristicRollbackException, com.caucho.transaction.SystemException
public void rollback()
public void enlistResource(com.caucho.transaction.XAResource resource) throws com.caucho.transaction.SystemException, com.caucho.transaction.RollbackException
public void delistResource(com.caucho.transaction.XAResource resource) throws com.caucho.transaction.SystemException, com.caucho.transaction.RollbackException
public void putResource(java.lang.Object key, java.lang.Object value)
public void removeResourceKey(java.lang.Object key)
public java.lang.Object getResource(java.lang.Object key)
public com.caucho.transaction.UserTransaction getUserTransaction()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |