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

Quick Search    Search Deep

org.hibernate.event.def
Class DefaultInitializeCollectionEventListener  view DefaultInitializeCollectionEventListener download DefaultInitializeCollectionEventListener.java

java.lang.Object
  extended byorg.hibernate.event.def.DefaultInitializeCollectionEventListener
All Implemented Interfaces:
org.hibernate.event.InitializeCollectionEventListener, java.io.Serializable

public class DefaultInitializeCollectionEventListener
extends java.lang.Object
implements org.hibernate.event.InitializeCollectionEventListener


Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
DefaultInitializeCollectionEventListener()
           
 
Method Summary
private  boolean initializeCollectionFromCache(java.io.Serializable id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.collection.PersistentCollection collection, org.hibernate.engine.SessionImplementor source)
          Try to initialize a collection from the cache
 void onInitializeCollection(org.hibernate.event.InitializeCollectionEvent event)
          called by a collection that wants to initialize itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

DefaultInitializeCollectionEventListener

public DefaultInitializeCollectionEventListener()
Method Detail

onInitializeCollection

public void onInitializeCollection(org.hibernate.event.InitializeCollectionEvent event)
                            throws org.hibernate.HibernateException
called by a collection that wants to initialize itself

Specified by:
onInitializeCollection in interface org.hibernate.event.InitializeCollectionEventListener

initializeCollectionFromCache

private boolean initializeCollectionFromCache(java.io.Serializable id,
                                              org.hibernate.persister.collection.CollectionPersister persister,
                                              org.hibernate.collection.PersistentCollection collection,
                                              org.hibernate.engine.SessionImplementor source)
                                       throws org.hibernate.HibernateException
Try to initialize a collection from the cache