|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.TxListener
public class TxListener
This class is a listener on the transaction. It is registered as a Synchronization on the current transaction. It holds the list of all instances that are possibly modified during the transaction.
| Constructor Summary | |
|---|---|
TxListener(JEntityFactory bf,
Transaction tx)
constructor |
|
| Method Summary | |
|---|---|
void |
addInstance(JEntityContext ec)
Add a new Context in the list. |
void |
afterCompletion(int status)
The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
This beforeCompletion method is called by the transaction manager prior to the start of the transaction completion process. |
void |
removeInstance(JEntityContext ec)
Remove an instance from the list |
void |
storeInstances()
Synchronizes all instances on disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TxListener(JEntityFactory bf,
Transaction tx)
bf - ref on the Bean Factorytx - associated Transaction| Method Detail |
|---|
public void storeInstances()
public void removeInstance(JEntityContext ec)
public void addInstance(JEntityContext ec)
ec - the JEntityContext to synchronizepublic void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface Synchronizationstatus - The status of the transaction completion.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||