|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LazyInitializer
Handles fetching of the underlying entity for a proxy
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 |
Class |
getPersistentClass()
Get the actual class of the entity (don't use this, use the entityName) |
SessionImplementor |
getSession()
Get the session, if this proxy is attached |
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)
|
Method Detail |
---|
void initialize() throws HibernateException
HibernateException
Serializable getIdentifier()
void setIdentifier(Serializable id)
String getEntityName()
Class getPersistentClass()
boolean isUninitialized()
void setImplementation(Object target)
SessionImplementor getSession()
void setSession(SessionImplementor s) throws HibernateException
HibernateException
Object getImplementation()
Object getImplementation(SessionImplementor s) throws HibernateException
HibernateException
void setUnwrap(boolean unwrap)
boolean isUnwrap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |