Package org.hibernate.engine.spi
Class CascadingActions.BaseCascadingAction<T>
java.lang.Object
org.hibernate.engine.spi.CascadingActions.BaseCascadingAction<T>
- All Implemented Interfaces:
CascadingAction<T>
- Enclosing class:
CascadingActions
public abstract static class CascadingActions.BaseCascadingAction<T>
extends Object
implements CascadingAction<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
anythingToCascade
(EntityPersister persister) Does this action have any work to do for the entity type with the given persister?boolean
appliesTo
(Type type, CascadeStyle style) Does this action have any work to do for fields of the given type with the given cascade style?boolean
cascadeNow
(CascadePoint cascadePoint, AssociationType associationType, SessionFactoryImplementor factory) Does this action cascade to the given association at the givenCascadePoint
?@Nullable ForeignKeyDirection
The cascade direction in which we care whether the foreign key is declared withon delete cascade
.boolean
Should this action be performed (or noCascade consulted) in the case of lazy properties.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, cascade, deleteOrphans, getCascadableChildrenIterator
-
Constructor Details
-
BaseCascadingAction
public BaseCascadingAction()
-
-
Method Details
-
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<T>
-
anythingToCascade
Description copied from interface:CascadingAction
Does this action have any work to do for the entity type with the given persister?- Specified by:
anythingToCascade
in interfaceCascadingAction<T>
-
appliesTo
Description copied from interface:CascadingAction
Does this action have any work to do for fields of the given type with the given cascade style?- Specified by:
appliesTo
in interfaceCascadingAction<T>
-
cascadeNow
public boolean cascadeNow(CascadePoint cascadePoint, AssociationType associationType, SessionFactoryImplementor factory) Description copied from interface:CascadingAction
Does this action cascade to the given association at the givenCascadePoint
?- Specified by:
cascadeNow
in interfaceCascadingAction<T>
-
directionAffectedByCascadeDelete
Description copied from interface:CascadingAction
The cascade direction in which we care whether the foreign key is declared withon delete cascade
.- Specified by:
directionAffectedByCascadeDelete
in interfaceCascadingAction<T>
-