|
||||||||||
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.hibernate.metamodel.binding.CascadeType
public enum CascadeType
Enum Constant Summary | |
---|---|
ALL
Cascades save, delete, update, evict, lock, replicate, merge, persist |
|
ALL_DELETE_ORPHAN
Cascades save, delete, update, evict, lock, replicate, merge, persist + delete orphans |
|
DELETE
Cascade delete |
|
DELETE_ORPHAN
Cascade delete + delete orphans |
|
EVICT
Cascades evict |
|
LOCK
Cascades lock |
|
MERGE
Cascades merge |
|
NONE
No cascading |
|
PERSIST
Cascades persist |
|
REFRESH
Cascades refresh |
|
REPLICATE
Cascades replicate |
|
UPDATE
Cascades save and update |
Method Summary | |
---|---|
static CascadeType |
getCascadeType(CascadeType jpaCascade)
|
static CascadeType |
getCascadeType(String hbmOptionName)
|
CascadeStyle |
toCascadeStyle()
|
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 ALL_DELETE_ORPHAN
public static final CascadeType UPDATE
public static final CascadeType PERSIST
public static final CascadeType MERGE
public static final CascadeType LOCK
public static final CascadeType REFRESH
public static final CascadeType REPLICATE
public static final CascadeType EVICT
public static final CascadeType DELETE
public static final CascadeType DELETE_ORPHAN
public static final CascadeType NONE
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 CascadeType getCascadeType(String hbmOptionName)
hbmOptionName
- the cascading option as specified in the hbm mapping file
CascadeType
for a given hbm cascading optionpublic static CascadeType getCascadeType(CascadeType jpaCascade)
jpaCascade
- the jpa cascade type
CascadeType
for a given jpa cascade typepublic CascadeStyle toCascadeStyle()
CascadeStyle
that corresponds to this CascadeType
MappingException
- if there is not corresponding CascadeStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |