Class CascadingActions.BaseCascadingAction<C>

java.lang.Object
org.hibernate.reactive.engine.impl.CascadingActions.BaseCascadingAction<C>
All Implemented Interfaces:
CascadingAction<C>
Enclosing class:
CascadingActions

public abstract static class CascadingActions.BaseCascadingAction<C> extends Object implements CascadingAction<C>
  • Method Details

    • getCascadableChildrenIterator

      public Iterator<?> getCascadableChildrenIterator(org.hibernate.event.spi.EventSource session, org.hibernate.type.CollectionType collectionType, 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>
    • noCascade

      public CompletionStage<Void> noCascade(org.hibernate.event.spi.EventSource session, 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:
    • 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 String toString()
      Overrides:
      toString in class Object