当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
SessionFactoryObjectFactory (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.impl
Class SessionFactoryObjectFactory
java.lang.Object
net.sf.hibernate.impl.SessionFactoryObjectFactory
- All Implemented Interfaces:
- ObjectFactory
- public class SessionFactoryObjectFactory
- extends Object
- implements ObjectFactory
Resolves SessionFactory JNDI lookups and deserialization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactoryObjectFactory
public SessionFactoryObjectFactory()
getObjectInstance
public Object getObjectInstance(Object reference,
Name name,
Context ctx,
Hashtable env)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
addInstance
public static void addInstance(String uid,
String name,
SessionFactory instance,
Properties properties)
removeInstance
public static void removeInstance(String uid,
String name,
Properties properties)
getNamedInstance
public static Object getNamedInstance(String name)
getInstance
public static Object getInstance(String uid)