org.hibernate.proxy.pojo.cglib
Class CGLIBLazyInitializer
java.lang.Object
org.hibernate.proxy.AbstractLazyInitializer
org.hibernate.proxy.pojo.BasicLazyInitializer
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer
- All Implemented Interfaces:
- LazyInitializer, org.hibernate.repackage.cglib.proxy.Callback, org.hibernate.repackage.cglib.proxy.InvocationHandler
public final class CGLIBLazyInitializer
- extends BasicLazyInitializer
- implements org.hibernate.repackage.cglib.proxy.InvocationHandler
A LazyInitializer implemented using the CGLIB bytecode generation library
Method Summary |
static HibernateProxy |
getProxy(java.lang.Class factory,
java.lang.String entityName,
java.lang.Class persistentClass,
java.lang.Class[] interfaces,
java.lang.reflect.Method getIdentifierMethod,
java.lang.reflect.Method setIdentifierMethod,
AbstractComponentType componentIdType,
java.io.Serializable id,
SessionImplementor session)
|
static java.lang.Class |
getProxyFactory(java.lang.Class persistentClass,
java.lang.Class[] interfaces)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected java.lang.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(java.lang.Class factory,
java.lang.String entityName,
java.lang.Class persistentClass,
java.lang.Class[] interfaces,
java.lang.reflect.Method getIdentifierMethod,
java.lang.reflect.Method setIdentifierMethod,
AbstractComponentType componentIdType,
java.io.Serializable id,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
getProxyFactory
public static java.lang.Class getProxyFactory(java.lang.Class persistentClass,
java.lang.Class[] interfaces)
throws HibernateException
- Throws:
HibernateException
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface org.hibernate.repackage.cglib.proxy.InvocationHandler
- Throws:
java.lang.Throwable
serializableProxy
protected java.lang.Object serializableProxy()
- Specified by:
serializableProxy
in class BasicLazyInitializer
Copyright © 2008 Hibernate.org. All Rights Reserved.