Class CascadingActions.BaseCascadingAction<C>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hibernate.engine.spi.CascadingAction<C> delegate()  
      boolean deleteOrphans()
      Does this action potentially extrapolate to orphan deletes?
      java.util.Iterator<?> getCascadableChildrenIterator​(org.hibernate.event.spi.EventSource session, org.hibernate.type.CollectionType collectionType, java.lang.Object collection)
      Given a collection, get an iterator of the children upon which the current cascading action should be visited.
      java.util.concurrent.CompletionStage<java.lang.Void> noCascade​(org.hibernate.event.spi.EventSource session, java.lang.Object parent, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.type.Type propertyType, int propertyIndex)
      Called (in the case of CascadingAction.requiresNoCascadeChecking() returning true) to validate that no cascade on the given property is considered a valid semantic.
      boolean performOnLazyProperty()
      Should this action be performed (or noCascade consulted) in the case of lazy properties.
      boolean requiresNoCascadeChecking()
      Does the specified cascading action require verification of no cascade validity?
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • getCascadableChildrenIterator

        public java.util.Iterator<?> getCascadableChildrenIterator​(org.hibernate.event.spi.EventSource session,
                                                                   org.hibernate.type.CollectionType collectionType,
                                                                   java.lang.Object collection)
        Description copied from interface: CascadingAction
        Given a collection, get an iterator of the children upon which the current cascading action should be visited.
        Specified by:
        getCascadableChildrenIterator in interface CascadingAction<C>
        Parameters:
        session - The session within which the cascade is occurring.
        collectionType - The mapping type of the collection.
        collection - The collection instance.
        Returns:
        The children iterator.
      • deleteOrphans

        public boolean deleteOrphans()
        Description copied from interface: CascadingAction
        Does this action potentially extrapolate to orphan deletes?
        Specified by:
        deleteOrphans in interface CascadingAction<C>
        Returns:
        True if this action can lead to deletions of orphans.
      • delegate

        public org.hibernate.engine.spi.CascadingAction<C> delegate()
        Specified by:
        delegate in interface CascadingAction<C>
      • requiresNoCascadeChecking

        public boolean requiresNoCascadeChecking()
        Description copied from interface: CascadingAction
        Does the specified cascading action require verification of no cascade validity?
        Specified by:
        requiresNoCascadeChecking in interface CascadingAction<C>
        Returns:
        True if this action requires no-cascade verification; false otherwise.
      • noCascade

        public java.util.concurrent.CompletionStage<java.lang.Void> noCascade​(org.hibernate.event.spi.EventSource session,
                                                                              java.lang.Object parent,
                                                                              org.hibernate.persister.entity.EntityPersister persister,
                                                                              org.hibernate.type.Type propertyType,
                                                                              int propertyIndex)
        Description copied from interface: CascadingAction
        Called (in the case of CascadingAction.requiresNoCascadeChecking() returning true) to validate that no cascade on the given property is considered a valid semantic.
        Specified by:
        noCascade in interface CascadingAction<C>
        Parameters:
        session - The session within which the cascade is occurring.
        parent - The property value owner
        persister - The entity persister for the owner
        propertyType - The property type
        propertyIndex - The index of the property within the owner.
        See Also:
        noCascade(EventSource, Object, EntityPersister, Type, int)
      • performOnLazyProperty

        public boolean performOnLazyProperty()
        Description copied from interface: CascadingAction
        Should this action be performed (or noCascade consulted) in the case of lazy properties.
        Specified by:
        performOnLazyProperty in interface CascadingAction<C>
      • toString

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