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 java.lang.Object implements CascadingAction<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 ofCascadingAction.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
-
Methods inherited from interface org.hibernate.reactive.engine.impl.CascadingAction
cascade
-
-
-
-
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 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:CascadingAction
Does this action potentially extrapolate to orphan deletes?- Specified by:
deleteOrphans
in interfaceCascadingAction<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 interfaceCascadingAction<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 interfaceCascadingAction<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 ofCascadingAction.requiresNoCascadeChecking()
returning true) to validate that no cascade on the given property is considered a valid semantic.- Specified by:
noCascade
in 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:
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 interfaceCascadingAction<C>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-