Package org.hibernate.engine
Class CascadeStyle.MultipleCascadeStyle
java.lang.Object
org.hibernate.engine.CascadeStyle
org.hibernate.engine.CascadeStyle.MultipleCascadeStyle
- All Implemented Interfaces:
Serializable
- Enclosing class:
CascadeStyle
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.engine.CascadeStyle
CascadeStyle.MultipleCascadeStyle -
Field Summary
Fields inherited from class org.hibernate.engine.CascadeStyle
ALL, ALL_DELETE_ORPHAN, DELETE, DELETE_ORPHAN, EVICT, LOCK, MERGE, NONE, PERSIST, REFRESH, REPLICATE, UPDATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCascade(CascadingAction action) For this style, should the given action be cascaded?booleanDo we need to delete orphaned collection elements?booleanreallyDoCascade(CascadingAction action) Probably more aptly named something like doCascadeToCollectionElements(); it is however used from both the collection and to-one logic branches...toString()Methods inherited from class org.hibernate.engine.CascadeStyle
getCascadeStyle
-
Constructor Details
-
MultipleCascadeStyle
-
-
Method Details
-
doCascade
Description copied from class:CascadeStyleFor this style, should the given action be cascaded?- Specified by:
doCascadein classCascadeStyle- Parameters:
action- The action to be checked for cascade-ability.- Returns:
- True if the action should be cascaded under this style; false otherwise.
-
reallyDoCascade
Description copied from class:CascadeStyleProbably more aptly named something like doCascadeToCollectionElements(); it is however used from both the collection and to-one logic branches... For this style, should the given action really be cascaded? The default implementation is simply to returnCascadeStyle.doCascade(org.hibernate.engine.CascadingAction); for certain styles (currently only delete-orphan), however, we need to be able to control this seperately.- Overrides:
reallyDoCascadein classCascadeStyle- Parameters:
action- The action to be checked for cascade-ability.- Returns:
- True if the action should be really cascaded under this style; false otherwise.
-
hasOrphanDelete
public boolean hasOrphanDelete()Description copied from class:CascadeStyleDo we need to delete orphaned collection elements?- Overrides:
hasOrphanDeletein classCascadeStyle- Returns:
- True if this style need to account for orphan delete operations; false othwerwise.
-
toString
-