public static enum DBRelation.DBCascadeAction extends Enum<DBRelation.DBCascadeAction>
This enum specifies options for a relation when deleting records (see DBRelation.setOnDeleteAction) - NONE: No Action is performed and the operation will fail if depending records exist. - CASCADE: Delete (or update) any depending records. This action will be performed by the database and thus the option "ON DELETE CASCADE" is added to the DDL generated for the relation. - CASCADE_RECORDS: This option allows to handle the cascade in code. All depending records will be selected by the framework and for each record DBRowSet.deleteRecord() will be called. The option "ON DELETE CASCADE" will NOT be added to the DDL generated for the relation.
Enum Constant and Description |
---|
CASCADE |
CASCADE_RECORDS |
NONE |
Modifier and Type | Method and Description |
---|---|
static DBRelation.DBCascadeAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DBRelation.DBCascadeAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DBRelation.DBCascadeAction NONE
public static final DBRelation.DBCascadeAction CASCADE
public static final DBRelation.DBCascadeAction CASCADE_RECORDS
public static DBRelation.DBCascadeAction[] values()
for (DBRelation.DBCascadeAction c : DBRelation.DBCascadeAction.values()) System.out.println(c);
public static DBRelation.DBCascadeAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2008–2023 Apache Software Foundation. All rights reserved.