org.hibernate.context
Class ThreadLocalSessionContext.CleanupSynch

java.lang.Object
org.hibernate.context.ThreadLocalSessionContext.CleanupSynch
- All Implemented Interfaces:
- java.io.Serializable, javax.transaction.Synchronization
- Enclosing class:
- ThreadLocalSessionContext
- protected static class ThreadLocalSessionContext.CleanupSynch
- extends java.lang.Object
- implements javax.transaction.Synchronization, java.io.Serializable
JTA transaction synch used for cleanup of the internal session map.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected final org.hibernate.SessionFactory factory
ThreadLocalSessionContext.CleanupSynch
public ThreadLocalSessionContext.CleanupSynch(org.hibernate.SessionFactory factory)
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion in interface javax.transaction.Synchronization
afterCompletion
public void afterCompletion(int i)
- Specified by:
afterCompletion in interface javax.transaction.Synchronization