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

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


net.sf.hibernate.proxy
Class LazyInitializer

java.lang.Object
  extended bynet.sf.hibernate.proxy.LazyInitializer
Direct Known Subclasses:
CGLIBLazyInitializer

public abstract class LazyInitializer
extends Object

Author:
Gavin King

Field Summary
protected  Method getIdentifierMethod
           
protected  Serializable id
           
protected static Object INVOKE_IMPLEMENTATION
           
protected  boolean overridesEquals
           
protected  Class persistentClass
           
protected  SessionImplementor session
           
protected  Method setIdentifierMethod
           
protected  Object target
           
 
Constructor Summary
protected LazyInitializer(Class persistentClass, Serializable id, Method getIdentifierMethod, Method setIdentifierMethod, SessionImplementor session)
           
 
Method Summary
 Serializable getIdentifier()
           
 Object getImplementation()
          Return the underlying persistent object, initializing if necessary
 Object getImplementation(SessionImplementor s)
          Return the underlying persistent object in the given Session, or null
 Class getPersistentClass()
           
 SessionImplementor getSession()
           
 void initialize()
           
protected  Object invoke(Method method, Object[] args, Object proxy)
           
 boolean isUninitialized()
           
protected abstract  Object serializableProxy()
           
 void setIdentifier(Serializable id)
           
 void setSession(SessionImplementor s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVOKE_IMPLEMENTATION

protected static final Object INVOKE_IMPLEMENTATION

target

protected Object target

id

protected Serializable id

session

protected SessionImplementor session

persistentClass

protected Class persistentClass

getIdentifierMethod

protected Method getIdentifierMethod

setIdentifierMethod

protected Method setIdentifierMethod

overridesEquals

protected boolean overridesEquals
Constructor Detail

LazyInitializer

protected LazyInitializer(Class persistentClass,
                          Serializable id,
                          Method getIdentifierMethod,
                          Method setIdentifierMethod,
                          SessionImplementor session)
Method Detail

initialize

public void initialize()
                throws HibernateException
Throws:
HibernateException

serializableProxy

protected abstract Object serializableProxy()

invoke

protected final Object invoke(Method method,
                              Object[] args,
                              Object proxy)
                       throws Throwable
Throws:
Throwable

getIdentifier

public final Serializable getIdentifier()

setIdentifier

public final void setIdentifier(Serializable id)

getPersistentClass

public final Class getPersistentClass()

isUninitialized

public final boolean isUninitialized()

getSession

public final SessionImplementor getSession()

setSession

public final void setSession(SessionImplementor s)

getImplementation

public final Object getImplementation()
Return the underlying persistent object, initializing if necessary


getImplementation

public final Object getImplementation(SessionImplementor s)
                               throws HibernateException
Return the underlying persistent object in the given Session, or null

Throws:
HibernateException