站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

ThreadLocalSessionContext.CleanupSynch (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.context
Class ThreadLocalSessionContext.CleanupSynch

java.lang.Object
  extended byorg.hibernate.context.ThreadLocalSessionContext.CleanupSynch
All Implemented Interfaces:
Serializable, Synchronization
Enclosing class:
ThreadLocalSessionContext

protected static class ThreadLocalSessionContext.CleanupSynch
extends Object
implements Synchronization, Serializable

JTA transaction synch used for cleanup of the internal session map.

See Also:
Serialized Form

Field Summary
protected  SessionFactory factory
           
 
Constructor Summary
ThreadLocalSessionContext.CleanupSynch(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 SessionFactory factory
Constructor Detail

ThreadLocalSessionContext.CleanupSynch

public ThreadLocalSessionContext.CleanupSynch(SessionFactory factory)
Method Detail

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization

afterCompletion

public void afterCompletion(int i)
Specified by:
afterCompletion in interface Synchronization