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 java.lang.Object implements CascadingAction
-
-
Constructor Summary
Constructors Constructor Description BaseCascadingAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnoCascade(EventSource session, java.lang.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.booleanperformOnLazyProperty()Should this action be performed (or noCascade consulted) in the case of lazy properties.booleanrequiresNoCascadeChecking()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:CascadingActionDoes the specified cascading action require verification of no cascade validity?- Specified by:
requiresNoCascadeCheckingin interfaceCascadingAction- Returns:
- True if this action requires no-cascade verification; false otherwise.
-
noCascade
public void noCascade(EventSource session, java.lang.Object parent, EntityPersister persister, 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- 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.
-
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
-
-