|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.map.DeleteRule
public class DeleteRule
Defines constants for the possible values of ObjRelationship delete rules.
Field Summary | |
---|---|
static int |
CASCADE
Delete the destination object(s) |
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 Summary | |
---|---|
DeleteRule()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_ACTION
public static final int NULLIFY
public static final int CASCADE
public static final int DENY
Constructor Detail |
---|
public DeleteRule()
Method Detail |
---|
public static String deleteRuleName(int deleteRule)
public static int deleteRuleForName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |