|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CascadeType> org.ektorp.docref.CascadeType
public enum CascadeType
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
static EnumSet<CascadeType> |
DELETE_TYPES
|
static EnumSet<CascadeType> |
PERSIST_TYPES
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CascadeType ALL
public static final CascadeType SAVE_UPDATE
public static final CascadeType DELETE
public static final CascadeType NONE
Field Detail |
---|
public static final EnumSet<CascadeType> DELETE_TYPES
public static final EnumSet<CascadeType> PERSIST_TYPES
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic static boolean intersects(CascadeType[] anyOf, EnumSet<CascadeType> types)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |