org.hibernate.proxy.pojo.javassist

Class JavassistLazyInitializer

Implemented Interfaces:
MethodHandler, LazyInitializer

public class JavassistLazyInitializer
extends BasicLazyInitializer
implements MethodHandler

A Javassist-based lazy initializer proxy.
Author:
Muga Nishizawa

Field Summary

Fields inherited from class org.hibernate.proxy.pojo.BasicLazyInitializer

INVOKE_IMPLEMENTATION, componentIdType, getIdentifierMethod, overridesEquals, persistentClass, setIdentifierMethod

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.pojo.BasicLazyInitializer

getPersistentClass, invoke, serializableProxy

Methods inherited from class org.hibernate.proxy.AbstractLazyInitializer

getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, isConnectedToSession, isUninitialized, isUnwrap, setIdentifier, setImplementation, setSession, setUnwrap

Method Details

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

getProxy

public static HibernateProxy getProxy(String entityName,
                                      Class persistentClass,
                                      Class[] interfaces,
                                      Method getIdentifierMethod,
                                      Method setIdentifierMethod,
                                      AbstractComponentType componentIdType,
                                      Serializable id,
                                      SessionImplementor session)
            throws HibernateException

getProxyFactory

public static Class getProxyFactory(Class persistentClass,
                                    Class[] interfaces)
            throws HibernateException

invoke

public Object invoke(Object proxy,
                     Method thisMethod,
                     Method proceed,
                     Object[] args)
            throws Throwable

serializableProxy

protected Object serializableProxy()
Overrides:
serializableProxy in interface BasicLazyInitializer