public static final class CascadeStyles.MultipleCascadeStyle extends CascadeStyles.BaseCascadeStyle
Constructor and Description |
---|
CascadeStyles.MultipleCascadeStyle(CascadeStyle[] styles) |
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...
|
String |
toString() |
public CascadeStyles.MultipleCascadeStyle(CascadeStyle[] styles)
public boolean doCascade(CascadingAction action)
CascadeStyle
action
- The action to be checked for cascade-ability.public boolean reallyDoCascade(CascadingAction action)
CascadeStyle
CascadeStyle.doCascade(org.hibernate.engine.spi.CascadingAction)
; for certain
styles (currently only delete-orphan), however, we need to be able to
control this separately.reallyDoCascade
in interface CascadeStyle
reallyDoCascade
in class CascadeStyles.BaseCascadeStyle
action
- The action to be checked for cascade-ability.public boolean hasOrphanDelete()
CascadeStyle
hasOrphanDelete
in interface CascadeStyle
hasOrphanDelete
in class CascadeStyles.BaseCascadeStyle
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.