|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DeleteAction>
com.sleepycat.persist.model.DeleteAction
public enum DeleteAction
Specifies the action to take when a related entity is deleted having a
primary key value that exists as a secondary key value for this entity.
This can be specified using a SecondaryKey.onRelatedEntityDelete()
annotation.
| Enum Constant Summary | |
|---|---|
ABORT
The default action, ABORT, means that an exception is thrown in
order to abort the current transaction. |
|
CASCADE
If CASCADE is specified, then this entity will be deleted also,
which could in turn trigger further deletions, causing a cascading
effect. |
|
NULLIFY
If NULLIFY is specified, then the secondary key in this entity
is set to null and this entity is updated. |
|
| Method Summary | |
|---|---|
static DeleteAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DeleteAction[] |
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 DeleteAction ABORT
ABORT, means that an exception is thrown in
order to abort the current transaction.
On BDB JE, a DeleteConstraintException is
thrown.
public static final DeleteAction CASCADE
CASCADE is specified, then this entity will be deleted also,
which could in turn trigger further deletions, causing a cascading
effect.
public static final DeleteAction NULLIFY
NULLIFY is specified, then the secondary key in this entity
is set to null and this entity is updated. For a secondary key field
that has an array or collection type, the array or collection element
will be removed by this action. The secondary key field must have a
reference (not a primitive) type in order to specify this action.
| Method Detail |
|---|
public static DeleteAction[] values()
for (DeleteAction c : DeleteAction.values()) System.out.println(c);
public static DeleteAction 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 null
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||