org.hibernate.proxy
Interface LazyInitializer
- AbstractLazyInitializer, BasicLazyInitializer, CGLIBLazyInitializer, Dom4jLazyInitializer, JavassistLazyInitializer, MapLazyInitializer
public interface LazyInitializer
Handles fetching of the underlying entity for a proxy
getEntityName
public abstract String getEntityName()
Get the entity name
getIdentifier
public abstract Serializable getIdentifier()
Get the identifier held by the proxy
getImplementation
public abstract Object getImplementation()
Return the underlying persistent object, initializing if necessary
getPersistentClass
public abstract Class getPersistentClass()
Get the actual class of the entity (don't
use this, use the entityName)
getSession
public abstract SessionImplementor getSession()
Get the session, if this proxy is attached
initialize
public abstract void initialize()
throws HibernateException
Initialize the proxy, fetching the target
entity if necessary
isUninitialized
public abstract boolean isUninitialized()
Is the proxy uninitialzed?
isUnwrap
public boolean isUnwrap()
setIdentifier
public abstract void setIdentifier(Serializable id)
Set the identifier property of the proxy
setImplementation
public abstract void setImplementation(Object target)
Initialize the proxy manually
setUnwrap
public void setUnwrap(boolean unwrap)