|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.util.DeleteRuleUpdater
public class DeleteRuleUpdater
DeleteRuleUpdater is responsible for auto-setting delete rules for object relationships
| Constructor Summary | |
|---|---|
DeleteRuleUpdater()
|
|
| Method Summary | |
|---|---|
static EntityMergeListener |
getEntityMergeListener()
Returns EntityMergeListener instance, which can set delete rule at relationship change |
void |
objAttributeAdded(ObjAttribute attr)
Invoked when a missing attribute in ObjEntity is completed from DbEntity |
void |
objRelationshipAdded(ObjRelationship rel)
Invoked when a missing relationship in ObjEntity is completed from DbEntity |
static void |
updateDataMap(DataMap map)
Updates delete rules for all obj entities in a datamap |
static void |
updateObjEntity(ObjEntity e)
Updates delete rules for all relationships in a objentity |
static void |
updateObjRelationship(ObjRelationship rel)
Updates delete rules for specified relationship |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteRuleUpdater()
| Method Detail |
|---|
public static void updateDataMap(DataMap map)
public static void updateObjEntity(ObjEntity e)
public static void updateObjRelationship(ObjRelationship rel)
public void objAttributeAdded(ObjAttribute attr)
EntityMergeListener
objAttributeAdded in interface EntityMergeListenerpublic void objRelationshipAdded(ObjRelationship rel)
EntityMergeListener
objRelationshipAdded in interface EntityMergeListenerpublic static EntityMergeListener getEntityMergeListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||