Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » proxy » [javadoc | source]
org.hibernate.proxy
public interface: LazyInitializer [javadoc | source]

All Known Implementing Classes:
    Dom4jLazyInitializer, JavassistLazyInitializer, Dom4jLazyInitializer, BasicLazyInitializer, MapLazyInitializer, BasicLazyInitializer, CGLIBLazyInitializer, CGLIBLazyInitializer, AbstractLazyInitializer, MapLazyInitializer

Handles fetching of the underlying entity for a proxy
Method from org.hibernate.proxy.LazyInitializer Summary:
getEntityName,   getIdentifier,   getImplementation,   getImplementation,   getPersistentClass,   getSession,   initialize,   isUninitialized,   isUnwrap,   setIdentifier,   setImplementation,   setSession,   setUnwrap
Method from org.hibernate.proxy.LazyInitializer Detail:
 abstract public String getEntityName()
    Get the entity name
 abstract public Serializable getIdentifier()
    Get the identifier held by the proxy
 abstract public Object getImplementation()
    Return the underlying persistent object, initializing if necessary
 abstract public Object getImplementation(SessionImplementor s) throws HibernateException
    Return the underlying persistent object in the given Session, or null
 abstract public Class getPersistentClass()
    Get the actual class of the entity (don't use this, use the entityName)
 abstract public SessionImplementor getSession()
    Get the session, if this proxy is attached
 abstract public  void initialize() throws HibernateException
    Initialize the proxy, fetching the target entity if necessary
 abstract public boolean isUninitialized()
    Is the proxy uninitialzed?
 public boolean isUnwrap()
 abstract public  void setIdentifier(Serializable id)
    Set the identifier property of the proxy
 abstract public  void setImplementation(Object target)
    Initialize the proxy manually
 abstract public  void setSession(SessionImplementor s) throws HibernateException
    Attach the proxy to a session
 public  void setUnwrap(boolean unwrap)