public interface CascadeStyle extends Serializable
A contract for defining the aspects of cascading various persistence actions.
CascadingAction
Modifier and Type | Method and Description |
---|---|
boolean |
doCascade(CascadingAction action)
For this style, should the given action be cascaded?
|
boolean |
hasOrphanDelete()
Do we need to delete orphaned collection elements?
|
boolean |
reallyDoCascade(CascadingAction action)
Probably more aptly named something like doCascadeToCollectionElements(); it is
however used from both the collection and to-one logic branches…
<p/>
For this style, should the given action really be cascaded? The default
implementation is simply to return
doCascade(org.hibernate.engine.spi.CascadingAction) ; for certain
styles (currently only delete-orphan), however, we need to be able to
control this separately. |
boolean doCascade(CascadingAction action)
For this style, should the given action be cascaded?
action
- The action to be checked for cascade-ability.boolean reallyDoCascade(CascadingAction action)
Probably more aptly named something like doCascadeToCollectionElements(); it is
however used from both the collection and to-one logic branches…
<p/>
For this style, should the given action really be cascaded? The default
implementation is simply to return doCascade(org.hibernate.engine.spi.CascadingAction)
; for certain
styles (currently only delete-orphan), however, we need to be able to
control this separately.
action
- The action to be checked for cascade-ability.boolean hasOrphanDelete()
Do we need to delete orphaned collection elements?
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.