public enum ForeignKeyDeleteAction extends java.lang.Enum<ForeignKeyDeleteAction>
The delete action applies to a secondary database that is configured to
have a foreign key integrity constraint. The delete action is specified by
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
|Enum Constant and Description|
When a referenced record in the foreign key database is deleted, abort the transaction by throwing a
When a referenced record in the foreign key database is deleted, delete the primary database record that references it.
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.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
public static final ForeignKeyDeleteAction ABORT
public static final ForeignKeyDeleteAction CASCADE
public static final ForeignKeyDeleteAction NULLIFY
public static ForeignKeyDeleteAction values()
for (ForeignKeyDeleteAction c : ForeignKeyDeleteAction.values()) System.out.println(c);
public static ForeignKeyDeleteAction 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 name
java.lang.NullPointerException- if the argument is null
public java.lang.String toString()
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.