|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.transaction.JSOTransactionManager
Constructor Summary | |
JSOTransactionManager(ConnectionPool aPool,
StorageController aController)
|
Method Summary | |
void |
addListener(TransactionListener listener)
Starts sending transaction events to a listener. |
Transaction |
getTransaction()
Gets the transaction associated to the current thread. |
int |
getTransactionCount()
Returns the number of active transactions. |
TransactionInfo |
getTransactionInfo()
Gets transaction processing information. |
void |
removeListener(TransactionListener listener)
Stops sending transaction events to a listener. |
void |
transactionBegun(TransactionEvent event)
Called immediately after transaction beginning. |
void |
transactionCommit(TransactionEvent event)
Called immediately before transaction commit. |
void |
transactionFinished(TransactionEvent event)
Called immediately after transaction finish. |
void |
transactionRollback(TransactionEvent event)
Called immediately before transaction rollback. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSOTransactionManager(ConnectionPool aPool, StorageController aController)
Method Detail |
public Transaction getTransaction() throws StorageException
getTransaction
in interface TransactionManager
StorageException
public TransactionInfo getTransactionInfo()
getTransactionInfo
in interface TransactionManager
null
. Information about transaction processing.public int getTransactionCount()
getTransactionCount
in interface TransactionInfo
public void addListener(TransactionListener listener)
addListener
in interface TransactionManager
listener
- Listener to receive transaction events.public void removeListener(TransactionListener listener)
removeListener
in interface TransactionManager
listener
- Listener to stop receiving transaction events.public void transactionBegun(TransactionEvent event)
transactionBegun
in interface TransactionListener
public void transactionCommit(TransactionEvent event)
transactionCommit
in interface TransactionListener
public void transactionRollback(TransactionEvent event)
transactionRollback
in interface TransactionListener
public void transactionFinished(TransactionEvent event)
transactionFinished
in interface TransactionListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |