public enum CascadeType extends Enum<CascadeType>
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 CascadeType getCascadeType(String hbmOptionName)
hbmOptionName
- the cascading option as specified in the hbm mapping fileCascadeType
for a given hbm cascading optionpublic static CascadeType getCascadeType(CascadeType jpaCascade)
jpaCascade
- the jpa cascade typeCascadeType
for a given jpa cascade typepublic CascadeStyle toCascadeStyle()
CascadeStyle
that corresponds to this CascadeType
MappingException
- if there is not corresponding CascadeStyle
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.