Package org.hibernate.engine.spi
Class CascadeStyles
- java.lang.Object
-
- org.hibernate.engine.spi.CascadeStyles
-
public final class CascadeStyles extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CascadeStyles.BaseCascadeStyle
static class
CascadeStyles.MultipleCascadeStyle
-
Field Summary
Fields Modifier and Type Field Description static CascadeStyle
ALL
save / delete / update / evict / lock / replicate / merge / persiststatic CascadeStyle
ALL_DELETE_ORPHAN
save / delete / update / evict / lock / replicate / merge / persist + delete orphansstatic CascadeStyle
DELETE
deletestatic CascadeStyle
DELETE_ORPHAN
delete + delete orphansstatic CascadeStyle
EVICT
evictstatic CascadeStyle
LOCK
lockstatic CascadeStyle
MERGE
mergestatic CascadeStyle
NONE
no cascadesstatic CascadeStyle
PERSIST
createstatic CascadeStyle
REFRESH
refreshstatic CascadeStyle
REPLICATE
replicatestatic CascadeStyle
UPDATE
save / update
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CascadeStyle
getCascadeStyle(String cascade)
Factory method for obtaining named cascade stylesstatic void
registerCascadeStyle(String name, CascadeStyles.BaseCascadeStyle cascadeStyle)
-
-
-
Field Detail
-
ALL_DELETE_ORPHAN
public static final CascadeStyle ALL_DELETE_ORPHAN
save / delete / update / evict / lock / replicate / merge / persist + delete orphans
-
ALL
public static final CascadeStyle ALL
save / delete / update / evict / lock / replicate / merge / persist
-
UPDATE
public static final CascadeStyle UPDATE
save / update
-
LOCK
public static final CascadeStyle LOCK
lock
-
REFRESH
public static final CascadeStyle REFRESH
refresh
-
EVICT
public static final CascadeStyle EVICT
evict
-
REPLICATE
public static final CascadeStyle REPLICATE
replicate
-
MERGE
public static final CascadeStyle MERGE
merge
-
PERSIST
public static final CascadeStyle PERSIST
create
-
DELETE
public static final CascadeStyle DELETE
delete
-
DELETE_ORPHAN
public static final CascadeStyle DELETE_ORPHAN
delete + delete orphans
-
NONE
public static final CascadeStyle NONE
no cascades
-
-
Method Detail
-
getCascadeStyle
public static CascadeStyle getCascadeStyle(String cascade)
Factory method for obtaining named cascade styles- Parameters:
cascade
- The named cascade style name.- Returns:
- The appropriate CascadeStyle
-
registerCascadeStyle
public static void registerCascadeStyle(String name, CascadeStyles.BaseCascadeStyle cascadeStyle)
-
-