public final class Cascade extends Object
actions
, implementing cascade processing.CascadingAction
Constructor and Description |
---|
Cascade(CascadingAction action,
CascadePoint cascadePoint,
EventSource eventSource)
Constructs a Cascade
|
Modifier and Type | Method and Description |
---|---|
void |
cascade(EntityPersister persister,
Object parent)
Cascade an action from the parent entity instance to all its children.
|
void |
cascade(EntityPersister persister,
Object parent,
Object anything)
Cascade an action from the parent entity instance to all its children.
|
public Cascade(CascadingAction action, CascadePoint cascadePoint, EventSource eventSource)
action
- The action we are cascadingcascadePoint
- The point in the action at which we are trying to cascade currentlyeventSource
- The sessionpublic void cascade(EntityPersister persister, Object parent)
persister
- The parent's entity persisterparent
- The parent reference.public void cascade(EntityPersister persister, Object parent, Object anything)
persister
- The parent's entity persisterparent
- The parent reference.anything
- Anything ;) Typically some form of cascade-local cache
which is specific to each CascadingAction typeCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.