当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
LazyInitializer (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.proxy
Class LazyInitializer
java.lang.Object
net.sf.hibernate.proxy.LazyInitializer
- Direct Known Subclasses:
- CGLIBLazyInitializer
- public abstract class LazyInitializer
- extends Object
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LazyInitializer
protected LazyInitializer(Class persistentClass,
Serializable id,
Method getIdentifierMethod,
Method setIdentifierMethod,
SessionImplementor session)
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