当前页面:
在线文档首页 >
Hibernate 3.2.4 正式版 API 英文文档
JavassistLazyInitializer (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档
org.hibernate.proxy.pojo.javassist
Class JavassistLazyInitializer
java.lang.Object
org.hibernate.proxy.AbstractLazyInitializer
org.hibernate.proxy.pojo.BasicLazyInitializer
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer
- All Implemented Interfaces:
- LazyInitializer, javassist.util.proxy.MethodHandler
- public class JavassistLazyInitializer
- extends BasicLazyInitializer
- implements javassist.util.proxy.MethodHandler
A Javassist-based lazy initializer proxy.
- Author:
- Muga Nishizawa
Method Summary |
static HibernateProxy |
getProxy(Class factory,
String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
AbstractComponentType componentIdType,
Serializable id,
SessionImplementor session)
|
static HibernateProxy |
getProxy(String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
AbstractComponentType componentIdType,
Serializable id,
SessionImplementor session)
|
static Class |
getProxyFactory(Class persistentClass,
Class[] interfaces)
|
Object |
invoke(Object proxy,
Method thisMethod,
Method proceed,
Object[] args)
|
protected Object |
serializableProxy()
|
Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer |
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, isConnectedToSession, isUninitialized, isUnwrap, setIdentifier, setImplementation, setSession, setUnwrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getProxy
public static HibernateProxy getProxy(String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
AbstractComponentType componentIdType,
Serializable id,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
getProxy
public static HibernateProxy getProxy(Class factory,
String entityName,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
AbstractComponentType componentIdType,
Serializable id,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
getProxyFactory
public static Class getProxyFactory(Class persistentClass,
Class[] interfaces)
throws HibernateException
- Throws:
HibernateException
invoke
public Object invoke(Object proxy,
Method thisMethod,
Method proceed,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface javassist.util.proxy.MethodHandler
- Throws:
Throwable
serializableProxy
protected Object serializableProxy()
- Specified by:
serializableProxy
in class BasicLazyInitializer