|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.proxy.AbstractLazyInitializer
| Constructor Summary | |
protected |
AbstractLazyInitializer(String entityName,
Serializable id,
SessionImplementor session)
|
| Method Summary | |
String |
getEntityName()
Get the entity name |
Serializable |
getIdentifier()
Get the identifier held by the proxy |
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, do not initialize the proxy |
SessionImplementor |
getSession()
Get the session, if this proxy is attached |
protected Object |
getTarget()
|
void |
initialize()
Initialize the proxy, fetching the target entity if necessary |
boolean |
isUninitialized()
Is the proxy uninitialzed? |
boolean |
isUnwrap()
|
void |
setIdentifier(Serializable id)
Set the identifier property of the proxy |
void |
setImplementation(Object target)
Initialize the proxy manually |
void |
setSession(SessionImplementor s)
Attach the proxy to a session |
void |
setUnwrap(boolean unwrap)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.proxy.LazyInitializer |
getPersistentClass |
| Constructor Detail |
protected AbstractLazyInitializer(String entityName,
Serializable id,
SessionImplementor session)
| Method Detail |
public final Serializable getIdentifier()
LazyInitializer
getIdentifier in interface LazyInitializerpublic final void setIdentifier(Serializable id)
LazyInitializer
setIdentifier in interface LazyInitializerpublic final String getEntityName()
LazyInitializer
getEntityName in interface LazyInitializerpublic final boolean isUninitialized()
LazyInitializer
isUninitialized in interface LazyInitializerpublic final SessionImplementor getSession()
LazyInitializer
getSession in interface LazyInitializer
public final void initialize()
throws HibernateException
LazyInitializer
initialize in interface LazyInitializerHibernateException
public final void setSession(SessionImplementor s)
throws HibernateException
LazyInitializer
setSession in interface LazyInitializerHibernateExceptionpublic final void setImplementation(Object target)
LazyInitializer
setImplementation in interface LazyInitializerpublic final Object getImplementation()
getImplementation in interface LazyInitializer
public final Object getImplementation(SessionImplementor s)
throws HibernateException
getImplementation in interface LazyInitializerHibernateExceptionprotected final Object getTarget()
public boolean isUnwrap()
isUnwrap in interface LazyInitializerpublic void setUnwrap(boolean unwrap)
setUnwrap in interface LazyInitializer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||