Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » proxy » [javadoc | source]
org.hibernate.proxy
abstract public class: AbstractLazyInitializer [javadoc | source]
java.lang.Object
   org.hibernate.proxy.AbstractLazyInitializer

All Implemented Interfaces:
    LazyInitializer

Direct Known Subclasses:
    Dom4jLazyInitializer, JavassistLazyInitializer, Dom4jLazyInitializer, BasicLazyInitializer, MapLazyInitializer, BasicLazyInitializer, CGLIBLazyInitializer, CGLIBLazyInitializer, MapLazyInitializer

Convenience base class for lazy initialization handlers. Centralizes the basic plumbing of doing lazy initialization freeing subclasses to acts as essentially adapters to their intended entity mode and/or proxy generation strategy.
Constructor:
 protected AbstractLazyInitializer() 
 protected AbstractLazyInitializer(String entityName,
    Serializable id,
    SessionImplementor session) 
Method from org.hibernate.proxy.AbstractLazyInitializer Summary:
getEntityName,   getIdentifier,   getImplementation,   getImplementation,   getSession,   getTarget,   initialize,   isConnectedToSession,   isUninitialized,   isUnwrap,   setIdentifier,   setImplementation,   setSession,   setUnwrap
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.proxy.AbstractLazyInitializer Detail:
 public final String getEntityName() 
 public final Serializable getIdentifier() 
 public final Object getImplementation() 
    Return the underlying persistent object, initializing if necessary
 public final Object getImplementation(SessionImplementor s) throws HibernateException 
    Return the underlying persistent object in the given Session, or null, do not initialize the proxy
 public final SessionImplementor getSession() 
 protected final Object getTarget() 
 public final  void initialize() throws HibernateException 
 protected final boolean isConnectedToSession() 
 public final boolean isUninitialized() 
 public boolean isUnwrap() 
 public final  void setIdentifier(Serializable id) 
 public final  void setImplementation(Object target) 
 public final  void setSession(SessionImplementor s) throws HibernateException 
 public  void setUnwrap(boolean unwrap)