public enum CascadeType extends Enum<CascadeType>
Enum Constant and Description |
---|
ALL
All operations are cascaded to the child documents.
|
DELETE
Cascades the remove operation to associated entities if delete(), executeBulk() or executeAllOrNothing() is called.
|
NONE
No operation is cascaded to the child documents.
|
SAVE_UPDATE
Cascades the create and update operations when create(), update(), executeBulk() or executeAllOrNothing() is called.
|
Modifier and Type | Field and Description |
---|---|
static EnumSet<CascadeType> |
DELETE_TYPES |
static EnumSet<CascadeType> |
PERSIST_TYPES |
Modifier and Type | Method and Description |
---|---|
static boolean |
intersects(CascadeType[] anyOf,
EnumSet<CascadeType> types) |
static CascadeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CascadeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CascadeType ALL
public static final CascadeType SAVE_UPDATE
public static final CascadeType DELETE
public static final CascadeType NONE
public static final EnumSet<CascadeType> DELETE_TYPES
public static final EnumSet<CascadeType> PERSIST_TYPES
public static CascadeType[] values()
for (CascadeType c : CascadeType.values()) System.out.println(c);
public static CascadeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static boolean intersects(CascadeType[] anyOf, EnumSet<CascadeType> types)
Copyright © 2013. All Rights Reserved.