| java.lang.Object org.lateralnz.simpletrans.SimpleTransactionManager
SimpleTransactionManager | public class SimpleTransactionManager implements TransactionManager,UserTransaction,Serializable,Referenceable(Code) | | a singleton implementation of a transaction manager, using thread-local variables to store
the current transaction.
author: J R Briggs |
begin | public void begin()(Code) | | begin a transaction. This method differs from that specified by the TransactionManager
interface, in that it doesn't throw an exception if the current thread is already in
a transaction -- and it doesn't create a nested transaction. This basically
assumes that everything will run in the current transaction.
|
commit | public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SystemException(Code) | | commit the current transaction (note: this doesn't throw an error if the
current thread is not in a transaction)
|
getStatus | public int getStatus() throws SystemException(Code) | | get the status of the current transaction
|
getTransaction | public Transaction getTransaction()(Code) | | get the transaction for the current (calling) thread
|
isInTransaction | protected boolean isInTransaction()(Code) | | a helper function to indicate if the calling thread is in a transaction
|
resume | public void resume(Transaction transaction)(Code) | | not supported
|
rollback | public void rollback() throws SystemException(Code) | | rollback the current transaction (note: this doesn't throw an error if the
current thread is not in a transaction)
|
setRollbackOnly | public void setRollbackOnly() throws SystemException(Code) | | flag the current transaction for rollback (note: this doesn't throw an error
if the current thread is not in a transaction)
|
setTransactionTimeout | public void setTransactionTimeout(int param)(Code) | | not supported
|
suspend | public Transaction suspend()(Code) | | not supported
|
|
|