当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
CGLIBLazyInitializer (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.proxy
Class CGLIBLazyInitializer
java.lang.Object
net.sf.hibernate.proxy.LazyInitializer
net.sf.hibernate.proxy.CGLIBLazyInitializer
- All Implemented Interfaces:
- net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
- public final class CGLIBLazyInitializer
- extends LazyInitializer
- implements net.sf.cglib.proxy.MethodInterceptor
A LazyInitializer implemented using the CGLIB bytecode generation library
Method Summary |
static HibernateProxy |
getProxy(net.sf.cglib.proxy.Factory factory,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
Serializable id,
SessionImplementor session)
|
static net.sf.cglib.proxy.Factory |
getProxyFactory(Class persistentClass,
Class[] interfaces)
|
Object |
intercept(Object obj,
Method method,
Object[] args,
net.sf.cglib.proxy.MethodProxy proxy)
|
protected Object |
serializableProxy()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getProxy
public static HibernateProxy getProxy(net.sf.cglib.proxy.Factory factory,
Class persistentClass,
Class[] interfaces,
Method getIdentifierMethod,
Method setIdentifierMethod,
Serializable id,
SessionImplementor session)
throws HibernateException
- Throws:
HibernateException
getProxyFactory
public static net.sf.cglib.proxy.Factory getProxyFactory(Class persistentClass,
Class[] interfaces)
throws HibernateException
- Throws:
HibernateException
intercept
public Object intercept(Object obj,
Method method,
Object[] args,
net.sf.cglib.proxy.MethodProxy proxy)
throws Throwable
- Specified by:
intercept
in interface net.sf.cglib.proxy.MethodInterceptor
- Throws:
Throwable
serializableProxy
protected Object serializableProxy()
- Specified by:
serializableProxy
in class LazyInitializer