Class CascadeStyles.MultipleCascadeStyle

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doCascade​(CascadingAction action)
      For this style, should the given action be cascaded?
      boolean hasOrphanDelete()
      Do we need to delete orphaned collection elements?
      boolean reallyDoCascade​(CascadingAction action)
      Probably more aptly named something like doCascadeToCollectionElements(); it is however used from both the collection and to-one logic branches...
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MultipleCascadeStyle

        public MultipleCascadeStyle​(CascadeStyle[] styles)
    • Method Detail

      • doCascade

        public boolean doCascade​(CascadingAction action)
        Description copied from interface: CascadeStyle
        For 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: CascadeStyle
        Probably 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 return CascadeStyle.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:
        reallyDoCascade in interface CascadeStyle
        Overrides:
        reallyDoCascade in class CascadeStyles.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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object