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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalPersistenceManager
public ThreadLocalPersistenceManager(PersistenceManagerFactory factory)
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 $