public enum CascadeStyle extends java.lang.Enum<CascadeStyle>
Relation
property.Enum Constant and Description |
---|
ALL
Cascade on all operations.
|
DELETE
Cascade on delete operations.
|
NONE
No cascading.
|
UPDATE
Cascade on update operations.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doCascadeUpdate()
Determines if this
CascadeStyle applies for update operation. |
boolean |
hasCascadeDelete()
Determines if this
CascadeStyle applies for delete operation. |
static CascadeStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CascadeStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CascadeStyle ALL
public static final CascadeStyle DELETE
public static final CascadeStyle UPDATE
public static final CascadeStyle NONE
public static CascadeStyle[] values()
for (CascadeStyle c : CascadeStyle.values()) System.out.println(c);
public static CascadeStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean hasCascadeDelete()
CascadeStyle
applies for delete operation.true
if it has cascade delete.public boolean doCascadeUpdate()
CascadeStyle
applies for update operation.true
if it is cascade update.