public class DeleteRule extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CASCADE
Delete the destination object(s)
|
static int |
DEFAULT_DELETE_RULE_TO_MANY
Default delete rule for one-to-many relationships.
|
static int |
DEFAULT_DELETE_RULE_TO_ONE
Default delete rule for many-to-one relationships.
|
static int |
DENY
If the relationship has any objects (toOne or toMany), deny the delete.
|
static int |
NO_ACTION |
static int |
NULLIFY
Remove the reference that the destination has to this source (if the
inverse relationship is toOne, nullify, if toMany, remove the source
object)
|
Constructor and Description |
---|
DeleteRule() |
Modifier and Type | Method and Description |
---|---|
static int |
deleteRuleForName(String name)
Translates a possible delete rule name (typically returned from
deleteRuleName at some stage), into a deleteRule constant
|
static String |
deleteRuleName(int deleteRule)
Returns String label for a delete rule state.
|
public static final int NO_ACTION
public static final int NULLIFY
public static final int CASCADE
public static final int DENY
public static final int DEFAULT_DELETE_RULE_TO_MANY
public static final int DEFAULT_DELETE_RULE_TO_ONE
public static String deleteRuleName(int deleteRule)
public static int deleteRuleForName(String name)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.