|
|||||||||||
| 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 TransactionManagerStorageExceptionpublic TransactionInfo getTransactionInfo()
getTransactionInfo in interface TransactionManagernull. Information about transaction processing.public int getTransactionCount()
getTransactionCount in interface TransactionInfopublic void addListener(TransactionListener listener)
addListener in interface TransactionManagerlistener - Listener to receive transaction events.public void removeListener(TransactionListener listener)
removeListener in interface TransactionManagerlistener - Listener to stop receiving transaction events.public void transactionBegun(TransactionEvent event)
transactionBegun in interface TransactionListenerpublic void transactionCommit(TransactionEvent event)
transactionCommit in interface TransactionListenerpublic void transactionRollback(TransactionEvent event)
transactionRollback in interface TransactionListenerpublic void transactionFinished(TransactionEvent event)
transactionFinished in interface TransactionListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||