| 
 | ||||||||||
| 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 | CASCADEDelete the destination object(s) | 
| static int | DEFAULT_DELETE_RULE_TO_MANYDefault delete rule for one-to-many relationships. | 
| static int | DEFAULT_DELETE_RULE_TO_ONEDefault delete rule for many-to-one relationships. | 
| static int | DENYIf the relationship has any objects (toOne or toMany), deny the delete. | 
| static int | NO_ACTION | 
| static int | NULLIFYRemove 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
public static final int DEFAULT_DELETE_RULE_TO_MANY
public static final int DEFAULT_DELETE_RULE_TO_ONE
| 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 | |||||||||