Save This Page
Home » hibernate-entitymanager-3.3.2.GA » org.hibernate » engine » [javadoc | source]
org.hibernate.engine
abstract public class: CascadeStyle [javadoc | source]
java.lang.Object
   org.hibernate.engine.CascadeStyle

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    EJB3CascadeStyle, MultipleCascadeStyle

A style of cascade that can be specified by the mapping for an association. The style is specified by the cascade attribute in the mapping file.
Nested Class Summary:
public static final class  CascadeStyle.MultipleCascadeStyle   
Field Summary
public static final  CascadeStyle ALL_DELETE_ORPHAN    save / delete / update / evict / lock / replicate / merge / persist + delete orphans 
public static final  CascadeStyle ALL    save / delete / update / evict / lock / replicate / merge / persist 
public static final  CascadeStyle UPDATE    save / update 
public static final  CascadeStyle LOCK    lock 
public static final  CascadeStyle REFRESH    refresh 
public static final  CascadeStyle EVICT    evict 
public static final  CascadeStyle REPLICATE    replicate 
public static final  CascadeStyle MERGE    merge 
public static final  CascadeStyle PERSIST    create 
public static final  CascadeStyle DELETE    delete 
public static final  CascadeStyle DELETE_ORPHAN    delete + delete orphans 
public static final  CascadeStyle NONE    no cascades 
static final  Map STYLES     
Constructor:
 CascadeStyle() 
Method from org.hibernate.engine.CascadeStyle Summary:
doCascade,   getCascadeStyle,   hasOrphanDelete,   reallyDoCascade
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.CascadeStyle Detail:
 abstract public boolean doCascade(CascadingAction action)
    Should the given action be cascaded?
 public static CascadeStyle getCascadeStyle(String cascade) 
 public boolean hasOrphanDelete() 
    Do we need to delete orphaned collection elements?
 public boolean reallyDoCascade(CascadingAction action) 
    Should the given action really, really be cascaded?