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 Summary
Modifier and TypeMethodDescriptionorg.hibernate.engine.spi.CascadingAction<C>delegate()booleanDoes this action potentially extrapolate to orphan deletes?Iterator<?>getCascadableChildrenIterator(org.hibernate.event.spi.EventSource session, org.hibernate.type.CollectionType collectionType, Object collection) Given a collection, get an iterator of the children upon which the current cascading action should be visited.noCascade(org.hibernate.event.spi.EventSource session, Object parent, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.type.Type propertyType, int propertyIndex) Called (in the case ofCascadingAction.requiresNoCascadeChecking()returning true) to validate that no cascade on the given property is considered a valid semantic.booleanShould this action be performed (or noCascade consulted) in the case of lazy properties.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.reactive.engine.impl.CascadingAction
cascade, requiresNoCascadeChecking
-
Method Details
-
getCascadableChildrenIterator
public Iterator<?> getCascadableChildrenIterator(org.hibernate.event.spi.EventSource session, org.hibernate.type.CollectionType collectionType, Object collection) Description copied from interface:CascadingActionGiven a collection, get an iterator of the children upon which the current cascading action should be visited.- Specified by:
getCascadableChildrenIteratorin interfaceCascadingAction<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:CascadingActionDoes this action potentially extrapolate to orphan deletes?- Specified by:
deleteOrphansin interfaceCascadingAction<C>- Returns:
- True if this action can lead to deletions of orphans.
-
delegate
- Specified by:
delegatein interfaceCascadingAction<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:CascadingActionCalled (in the case ofCascadingAction.requiresNoCascadeChecking()returning true) to validate that no cascade on the given property is considered a valid semantic.- Specified by:
noCascadein interfaceCascadingAction<C>- Parameters:
session- The session within which the cascade is occurring.parent- The property value ownerpersister- The entity persister for the ownerpropertyType- The property typepropertyIndex- The index of the property within the owner.- See Also:
-
performOnLazyProperty
public boolean performOnLazyProperty()Description copied from interface:CascadingActionShould this action be performed (or noCascade consulted) in the case of lazy properties.- Specified by:
performOnLazyPropertyin interfaceCascadingAction<C>
-
toString
-