public static final class CascadeStyle.MultipleCascadeStyle extends CascadeStyle
CascadeStyle.MultipleCascadeStyleALL, ALL_DELETE_ORPHAN, DELETE, DELETE_ORPHAN, EVICT, LOCK, MERGE, NONE, PERSIST, REFRESH, REPLICATE, STYLES, UPDATE| Constructor and Description |
|---|
CascadeStyle.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() |
getCascadeStylepublic CascadeStyle.MultipleCascadeStyle(CascadeStyle[] styles)
public boolean doCascade(CascadingAction action)
CascadeStyledoCascade in class CascadeStyleaction - The action to be checked for cascade-ability.public boolean reallyDoCascade(CascadingAction action)
CascadeStyleCascadeStyle.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 class CascadeStyleaction - The action to be checked for cascade-ability.public boolean hasOrphanDelete()
CascadeStylehasOrphanDelete in class CascadeStyleCopyright © 2018 JBoss by Red Hat. All rights reserved.