|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.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,
javax.transaction.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, javax.transaction.Transaction tx)
bf
- ref on the Bean Factorytx
- associated TransactionMethod Detail |
---|
public void storeInstances()
public void removeInstance(JEntityContext ec)
public void addInstance(JEntityContext ec)
ec
- the JEntityContext to synchronizepublic void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
public void afterCompletion(int status)
afterCompletion
in interface javax.transaction.Synchronization
status
- The status of the transaction completion.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |