Home » Hibernate-3.3.2.GA » org.hibernate » event » def » [javadoc | source]
abstract public class: AbstractFlushingEventListener [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    DefaultAutoFlushEventListener, EJB3FlushEventListener, EJB3AutoFlushEventListener, DefaultDirtyCheckEventListener, DefaultFlushEventListener

A convenience base class for listeners whose functionality results in flushing.
Method from org.hibernate.event.def.AbstractFlushingEventListener Summary:
flushEverythingToExecutions,   getAnything,   getCascadingAction,   performExecutions,   postFlush
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.event.def.AbstractFlushingEventListener Detail:
 protected  void flushEverythingToExecutions(FlushEvent event) throws HibernateException 
    Coordinates the processing necessary to get things ready for executions as db calls by preping the session caches and moving the appropriate entities and collections to their respective execution queues.
 protected Object getAnything() 
 protected CascadingAction getCascadingAction() 
 protected  void performExecutions(EventSource session) throws HibernateException 
    Execute all SQL and second-level cache updates, in a special order so that foreign-key constraints cannot be violated:
    1. Inserts, in the order they were performed
    2. Updates
    3. Deletion of collection elements
    4. Insertion of collection elements
    5. Deletes, in the order they were performed
 protected  void postFlush(SessionImplementor session) throws HibernateException 
    1. Recreate the collection key -> collection map 2. rebuild the collection entries 3. call Interceptor.postFlush()