Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.context
Class ThreadLocalSessionContext.CleanupSynch  view ThreadLocalSessionContext.CleanupSynch download ThreadLocalSessionContext.CleanupSynch.java

java.lang.Object
  extended byorg.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.


Field Summary
protected  org.hibernate.SessionFactory factory
           
 
Constructor Summary
ThreadLocalSessionContext.CleanupSynch(org.hibernate.SessionFactory factory)
           
 
Method Summary
 void afterCompletion(int i)
           
 void beforeCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected final org.hibernate.SessionFactory factory
Constructor Detail

ThreadLocalSessionContext.CleanupSynch

public ThreadLocalSessionContext.CleanupSynch(org.hibernate.SessionFactory factory)
Method Detail

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