站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

CGLIBLazyInitializer (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.proxy
Class CGLIBLazyInitializer

java.lang.Object
  extended bynet.sf.hibernate.proxy.LazyInitializer
      extended bynet.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


Field Summary
 
Fields inherited from class net.sf.hibernate.proxy.LazyInitializer
getIdentifierMethod, id, INVOKE_IMPLEMENTATION, overridesEquals, persistentClass, session, setIdentifierMethod, target
 
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 net.sf.hibernate.proxy.LazyInitializer
getIdentifier, getImplementation, getImplementation, getPersistentClass, getSession, initialize, invoke, isUninitialized, setIdentifier, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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