public class DeleteRule extends Object
| Modifier and Type | Field and Description | 
|---|---|
| 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 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–2023 Apache Cayenne. All rights reserved.