Package org.hibernate.engine.spi
Class CascadingActions.BaseCascadingAction
- java.lang.Object
-
- org.hibernate.engine.spi.CascadingActions.BaseCascadingAction
-
- All Implemented Interfaces:
CascadingAction
- Enclosing class:
- CascadingActions
public abstract static class CascadingActions.BaseCascadingAction extends Object implements CascadingAction
-
-
Constructor Summary
Constructors Constructor Description BaseCascadingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
noCascade(EventSource session, Object parent, EntityPersister persister, 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?-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.spi.CascadingAction
cascade, deleteOrphans, getCascadableChildrenIterator
-
-
-
-
Method Detail
-
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
- Returns:
- True if this action requires no-cascade verification; false otherwise.
-
noCascade
public void noCascade(EventSource session, Object parent, EntityPersister persister, 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
- Parameters:
session
- The session witin 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.
-
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
-
-