Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.proxy
Interface LazyInitializer  view LazyInitializer download LazyInitializer.java

All Known Implementing Classes:
AbstractLazyInitializer

public interface LazyInitializer

Handles fetching of the underlying entity for a proxy


Method Summary
 java.lang.String getEntityName()
          Get the entity name
 java.io.Serializable getIdentifier()
          Get the identifier held by the proxy
 java.lang.Object getImplementation()
          Return the underlying persistent object, initializing if necessary
 java.lang.Object getImplementation(org.hibernate.engine.SessionImplementor s)
          Return the underlying persistent object in the given Session, or null
 java.lang.Class getPersistentClass()
          Get the actual class of the entity (don't use this, use the entityName)
 org.hibernate.engine.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(java.io.Serializable id)
          Set the identifier property of the proxy
 void setImplementation(java.lang.Object target)
          Initialize the proxy manually
 void setSession(org.hibernate.engine.SessionImplementor s)
          Attach the proxy to a session
 void setUnwrap(boolean unwrap)
           
 

Method Detail

initialize

public void initialize()
                throws org.hibernate.HibernateException
Initialize the proxy, fetching the target entity if necessary


getIdentifier

public java.io.Serializable getIdentifier()
Get the identifier held by the proxy


setIdentifier

public void setIdentifier(java.io.Serializable id)
Set the identifier property of the proxy


getEntityName

public java.lang.String getEntityName()
Get the entity name


getPersistentClass

public java.lang.Class getPersistentClass()
Get the actual class of the entity (don't use this, use the entityName)


isUninitialized

public boolean isUninitialized()
Is the proxy uninitialzed?


setImplementation

public void setImplementation(java.lang.Object target)
Initialize the proxy manually


getSession

public org.hibernate.engine.SessionImplementor getSession()
Get the session, if this proxy is attached


setSession

public void setSession(org.hibernate.engine.SessionImplementor s)
                throws org.hibernate.HibernateException
Attach the proxy to a session


getImplementation

public java.lang.Object getImplementation()
Return the underlying persistent object, initializing if necessary


getImplementation

public java.lang.Object getImplementation(org.hibernate.engine.SessionImplementor s)
                                   throws org.hibernate.HibernateException
Return the underlying persistent object in the given Session, or null


setUnwrap

public void setUnwrap(boolean unwrap)

isUnwrap

public boolean isUnwrap()