|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.spi.CascadeStyle
public abstract class CascadeStyle
A contract for defining the aspects of cascading various persistence actions.
CascadingAction
,
Serialized FormNested Class Summary | |
---|---|
static class |
CascadeStyle.MultipleCascadeStyle
|
Field Summary | |
---|---|
static CascadeStyle |
ALL
save / delete / update / evict / lock / replicate / merge / persist |
static CascadeStyle |
ALL_DELETE_ORPHAN
save / delete / update / evict / lock / replicate / merge / persist + delete orphans |
static CascadeStyle |
DELETE
delete |
static CascadeStyle |
DELETE_ORPHAN
delete + delete orphans |
static CascadeStyle |
EVICT
evict |
static CascadeStyle |
LOCK
lock |
static CascadeStyle |
MERGE
merge |
static CascadeStyle |
NONE
no cascades |
static CascadeStyle |
PERSIST
create |
static CascadeStyle |
REFRESH
refresh |
static CascadeStyle |
REPLICATE
replicate |
static Map<String,CascadeStyle> |
STYLES
|
static CascadeStyle |
UPDATE
save / update |
Constructor Summary | |
---|---|
CascadeStyle()
|
Method Summary | |
---|---|
abstract boolean |
doCascade(CascadingAction action)
For this style, should the given action be cascaded? |
static CascadeStyle |
getCascadeStyle(String cascade)
Factory method for obtaining named cascade styles |
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... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CascadeStyle ALL_DELETE_ORPHAN
public static final CascadeStyle ALL
public static final CascadeStyle UPDATE
public static final CascadeStyle LOCK
public static final CascadeStyle REFRESH
public static final CascadeStyle EVICT
public static final CascadeStyle REPLICATE
public static final CascadeStyle MERGE
public static final CascadeStyle PERSIST
public static final CascadeStyle DELETE
public static final CascadeStyle DELETE_ORPHAN
public static final CascadeStyle NONE
public static final Map<String,CascadeStyle> STYLES
Constructor Detail |
---|
public CascadeStyle()
Method Detail |
---|
public abstract boolean doCascade(CascadingAction action)
action
- The action to be checked for cascade-ability.
public boolean reallyDoCascade(CascadingAction action)
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.
public boolean hasOrphanDelete()
public static CascadeStyle getCascadeStyle(String cascade)
cascade
- The named cascade style name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |