org.xorm.util
Class ThreadLocalPersistenceManager

java.lang.Object
  |
  +--java.lang.ThreadLocal
        |
        +--org.xorm.util.ThreadLocalPersistenceManager

public class ThreadLocalPersistenceManager
extends ThreadLocal

This class provides thread-local access to a set of PersistenceManagers. The same PersistenceManager will always be associated with the same JVM thread. This is useful in many application and web server environments where you wish to avoid passing around a PersistenceManager reference.

Author:
Wes Biggs

Constructor Summary
ThreadLocalPersistenceManager(PersistenceManagerFactory factory)
           
 
Method Summary
 Object initialValue()
           
 
Methods inherited from class java.lang.ThreadLocal
get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalPersistenceManager

public ThreadLocalPersistenceManager(PersistenceManagerFactory factory)
Method Detail

initialValue

public Object initialValue()
Overrides:
initialValue in class ThreadLocal


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/util/ThreadLocalPersistenceManager.html,v 1.6 2004/05/30 08:55:10 wbiggs Exp $