|
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<ForeignKeyDeleteAction>
com.sleepycat.je.ForeignKeyDeleteAction
public enum ForeignKeyDeleteAction
The action taken when a referenced record in the foreign key database is deleted.
The delete action applies to a secondary database that is configured to
have a foreign key integrity constraint. The delete action is specified by
calling SecondaryConfig.setForeignKeyDeleteAction(com.sleepycat.je.ForeignKeyDeleteAction)
.
When a record in the foreign key database is deleted, it is checked to
see if it is referenced by any record in the associated secondary database.
If the key is referenced, the delete action is applied. By default, the
delete action is ABORT
.
SecondaryConfig
Enum Constant Summary | |
---|---|
ABORT
When a referenced record in the foreign key database is deleted, abort the transaction by throwing a DeleteConstraintException . |
|
CASCADE
When a referenced record in the foreign key database is deleted, delete the primary database record that references it. |
|
NULLIFY
When a referenced record in the foreign key database is deleted, set the reference to null in the primary database record that references it, thereby deleting the secondary key. |
Method Summary | |
---|---|
String |
toString()
|
static ForeignKeyDeleteAction |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ForeignKeyDeleteAction[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ForeignKeyDeleteAction ABORT
DeleteConstraintException
.
public static final ForeignKeyDeleteAction CASCADE
public static final ForeignKeyDeleteAction NULLIFY
Method Detail |
---|
public static ForeignKeyDeleteAction[] values()
for (ForeignKeyDeleteAction c : ForeignKeyDeleteAction.values()) System.out.println(c);
public static ForeignKeyDeleteAction 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 String toString()
toString
in class Enum<ForeignKeyDeleteAction>
|
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 |