Package org.hibernate.engine.spi
Class CascadeStyles.MultipleCascadeStyle
- java.lang.Object
-
- org.hibernate.engine.spi.CascadeStyles.BaseCascadeStyle
-
- org.hibernate.engine.spi.CascadeStyles.MultipleCascadeStyle
-
- All Implemented Interfaces:
Serializable,CascadeStyle
- Enclosing class:
- CascadeStyles
public static final class CascadeStyles.MultipleCascadeStyle extends CascadeStyles.BaseCascadeStyle
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultipleCascadeStyle(CascadeStyle[] styles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoCascade(CascadingAction action)For this style, should the given action be cascaded?booleanhasOrphanDelete()Do 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...StringtoString()
-
-
-
Constructor Detail
-
MultipleCascadeStyle
public MultipleCascadeStyle(CascadeStyle[] styles)
-
-
Method Detail
-
doCascade
public boolean doCascade(CascadingAction action)
Description copied from interface:CascadeStyleFor this style, should the given action be cascaded?- Parameters:
action- The action to be checked for cascade-ability.- Returns:
- True if the action should be cascaded under this style; false otherwise.
-
reallyDoCascade
public boolean reallyDoCascade(CascadingAction action)
Description copied from interface: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.spi.CascadingAction); for certain styles (currently only delete-orphan), however, we need to be able to control this separately.- Specified by:
reallyDoCascadein interfaceCascadeStyle- Overrides:
reallyDoCascadein classCascadeStyles.BaseCascadeStyle- 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 interface:CascadeStyleDo we need to delete orphaned collection elements?- Specified by:
hasOrphanDeletein interfaceCascadeStyle- Overrides:
hasOrphanDeletein classCascadeStyles.BaseCascadeStyle- Returns:
- True if this style need to account for orphan delete operations; false otherwise.
-
-