Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » engine » [javadoc | source]
org.hibernate.engine
public final class: Cascade [javadoc | source]
java.lang.Object
   org.hibernate.engine.Cascade
Delegate responsible for, in conjunction with the various actions , implementing cascade processing.
Field Summary
public static final  int AFTER_INSERT_BEFORE_DELETE    A cascade point that occurs just after the insertion of the parent entity and just before deletion 
public static final  int BEFORE_INSERT_AFTER_DELETE    A cascade point that occurs just before the insertion of the parent entity and just after deletion 
public static final  int AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION    A cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collection 
public static final  int AFTER_UPDATE    A cascade point that occurs just after update of the parent entity 
public static final  int BEFORE_FLUSH    A cascade point that occurs just before the session is flushed 
public static final  int AFTER_EVICT    A cascade point that occurs just after eviction of the parent entity from the session cache 
public static final  int BEFORE_REFRESH    A cascade point that occurs just after locking a transient parent entity into the session cache 
public static final  int AFTER_LOCK    A cascade point that occurs just after refreshing a parent entity 
public static final  int BEFORE_MERGE    A cascade point that occurs just before merging from a transient parent entity into the object in the session cache 
Constructor:
 public Cascade(CascadingAction action,
    int cascadeTo,
    EventSource eventSource) 
Method from org.hibernate.engine.Cascade Summary:
cascade,   cascade
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.Cascade Detail:
 public  void cascade(EntityPersister persister,
    Object parent) throws HibernateException 
    Cascade an action from the parent entity instance to all its children.
 public  void cascade(EntityPersister persister,
    Object parent,
    Object anything) throws HibernateException 
    Cascade an action from the parent entity instance to all its children. This form is typicaly called from within cascade actions.