public abstract class CascadeStyle extends Object implements Serializable
CascadingAction
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CascadeStyle.MultipleCascadeStyle |
Modifier and Type | Field and Description |
---|---|
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 CascadeStyle |
UPDATE
save / update
|
Constructor and Description |
---|
CascadeStyle() |
Modifier and Type | Method and Description |
---|---|
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...
|
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 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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.