public enum CascadeBehavior
The cascade behavior enum.
| Enum constant | Description |
|---|---|
ALL |
Cascades all operations, including delete-orphan. |
ALL_DELETE_ORPHAN |
Cascades all operations, including delete-orphan. |
DELETE |
Cascades the delete operation. |
EVICT |
Cascades the evict (detach) operation. |
LOCK |
Cascades the lock operation. |
MERGE |
Cascades the merge operation. |
NONE |
No operations are cascaded. |
PERSIST |
Cascades the persist operation. |
REPLICATE |
Cascades the replicate operation. |
SAVE_UPDATE |
Cascades save and update operations. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static CascadeBehavior |
fromString(java.lang.String value)From string. |
|
public java.lang.String |
getValue()
|
|
public static boolean |
isSaveUpdate(java.lang.String cascade)Check if a save-update cascade is defined within the Hibernate cascade properties string. |
|
public boolean |
isSaveUpdate()Returns whether save update. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Cascades all operations, including delete-orphan. Maps to "all".
Cascades all operations, including delete-orphan. Maps to "all-delete-orphan".
Cascades the delete operation. Maps to "delete".
Cascades the evict (detach) operation. Maps to "evict".
Cascades the lock operation. Maps to "lock".
Cascades the merge operation. Maps to "merge".
No operations are cascaded. This is the default for unrecognized values.
Cascades the persist operation. Maps to "persist".
Cascades the replicate operation. Maps to "replicate".
Cascades save and update operations. Maps to "persist,merge".
From string.
Check if a save-update cascade is defined within the Hibernate cascade properties string.
cascade - The string containing the cascade properties.Returns whether save update.