Class JavassistLazyInitializer
java.lang.Object
org.hibernate.proxy.AbstractLazyInitializer
org.hibernate.proxy.pojo.BasicLazyInitializer
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer
- All Implemented Interfaces:
javassist.util.proxy.MethodHandler,LazyInitializer
public class JavassistLazyInitializer
extends BasicLazyInitializer
implements javassist.util.proxy.MethodHandler
A Javassist-based lazy initializer proxy.
-
Field Summary
Fields inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer
componentIdType, getIdentifierMethod, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, setIdentifierMethod -
Method Summary
Modifier and TypeMethodDescriptionstatic HibernateProxygetProxy(Class factory, String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, Serializable id, SessionImplementor session) static HibernateProxygetProxy(String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType, Serializable id, SessionImplementor session) static ClassgetProxyFactory(Class persistentClass, Class[] interfaces) protected ObjectMethods inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer
getPersistentClass, invokeMethods inherited from class org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
Method Details
-
getProxy
public static HibernateProxy getProxy(String entityName, Class persistentClass, Class[] interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType 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, CompositeType 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:
invokein interfacejavassist.util.proxy.MethodHandler- Throws:
Throwable
-
serializableProxy
- Specified by:
serializableProxyin classBasicLazyInitializer
-