public abstract static class CascadingActions.BaseCascadingAction<C> extends Object implements CascadingAction<C>
Type | Property and Description |
---|---|
boolean | performOnLazy Should this action be performed (or noCascade consulted) in the case of lazy properties. |
Constructor and Description |
---|
BaseCascadingAction(org.hibernate.engine.spi.CascadingAction delegate) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.engine.spi.CascadingAction | delegate() |
boolean | deleteOrphans() Does this action potentially extrapolate to orphan deletes? |
Iterator<?> | getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection) Given a collection, get an iterator of the children upon which the current cascading action should be visited. |
CompletionStage<Void> | noCascade(EventSource session, Object parent, EntityPersister persister, 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? |
String | toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cascade
public boolean performOnLazyProperty
performOnLazyProperty
in interface CascadingAction<C>
BaseCascadingAction(org.hibernate.engine.spi.CascadingAction delegate)
public Iterator<?> getCascadableChildrenIterator(EventSource session, CollectionType collectionType, Object collection)
CascadingAction
getCascadableChildrenIterator
in interface CascadingAction<C>
session
- The session within which the cascade is occurring.collectionType
- The mapping type of the collection.collection
- The collection instance.public boolean deleteOrphans()
CascadingAction
deleteOrphans
in interface CascadingAction<C>
public org.hibernate.engine.spi.CascadingAction delegate()
delegate
in interface CascadingAction<C>
public boolean requiresNoCascadeChecking()
CascadingAction
requiresNoCascadeChecking
in interface CascadingAction<C>
public CompletionStage<Void> noCascade(EventSource session, Object parent, EntityPersister persister, Type propertyType, int propertyIndex)
CascadingAction
CascadingAction.requiresNoCascadeChecking()
returning true) to validate that no cascade on the given property is considered a valid semantic.noCascade
in interface CascadingAction<C>
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.noCascade(EventSource, Object, EntityPersister, Type, int)
public boolean performOnLazyProperty()
CascadingAction
performOnLazyProperty
in interface CascadingAction<C>