|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.resource.internal.cm.jta.JSynchronization
public class JSynchronization
This class is an implementation of the Synchronization interface, used by a
ConnectionManagerImpl instance. The aim of this class is to close a
ManagedConnection when a transaction finishes. This class is necessary when
the commit or the rollback action is after a connection close.
| Constructor Summary | |
|---|---|
JSynchronization(ConnectionManagerImpl pCm,
ManagedConnectionInfo pMci)
Constructor for the MySynchro object |
|
| Method Summary | |
|---|---|
void |
afterCompletion(int status)
This method is called by the transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
This method is called by the transaction manager prior to the start of the transaction completion process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSynchronization(ConnectionManagerImpl pCm,
ManagedConnectionInfo pMci)
pCm - ConnectionManager objectpMci - ManagedConnection information object| Method Detail |
|---|
public void afterCompletion(int status)
afterCompletion in interface Synchronizationstatus - The transaction flagpublic void beforeCompletion()
beforeCompletion in interface Synchronization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||