public abstract static class CascadingActions.BaseCascadingAction<C> extends java.lang.Object implements CascadingAction<C>
Modifier and Type | Method and Description |
---|---|
org.hibernate.engine.spi.CascadingAction |
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
cascade
public java.util.Iterator<?> getCascadableChildrenIterator(org.hibernate.event.spi.EventSource session, org.hibernate.type.CollectionType collectionType, java.lang.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 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)
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>
public java.lang.String toString()
toString
in class java.lang.Object