org.hibernate.proxy.pojo.cglib

Class CGLIBLazyInitializer

Implemented Interfaces:
InvocationHandler, LazyInitializer

public final class CGLIBLazyInitializer
extends BasicLazyInitializer
implements InvocationHandler

A LazyInitializer implemented using the CGLIB bytecode generation library

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 Class
getProxyFactory(Class persistentClass, Class[] interfaces)
Object
invoke(Object proxy, Method method, 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

getProxyFactory

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

invoke

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

serializableProxy

protected Object serializableProxy()
Overrides:
serializableProxy in interface BasicLazyInitializer