Package org.apache.cayenne.util
Class DeleteRuleUpdater
java.lang.Object
org.apache.cayenne.util.DeleteRuleUpdater
- All Implemented Interfaces:
EntityMergeListener
DeleteRuleUpdater is responsible for auto-setting delete rules for object relationships
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityMergeListener
Returns EntityMergeListener instance, which can set delete rule at relationship changevoid
Invoked when a missing attribute in ObjEntity is completed from DbEntityvoid
Invoked when a missing relationship in ObjEntity is completed from DbEntitystatic void
updateDataMap
(DataMap map) Updates delete rules for all obj entities in a datamapstatic void
Updates delete rules for all relationships in a objentitystatic void
Updates delete rules for specified relationship
-
Constructor Details
-
DeleteRuleUpdater
public DeleteRuleUpdater()
-
-
Method Details
-
updateDataMap
Updates delete rules for all obj entities in a datamap -
updateObjEntity
Updates delete rules for all relationships in a objentity -
updateObjRelationship
Updates delete rules for specified relationship -
objAttributeAdded
Description copied from interface:EntityMergeListener
Invoked when a missing attribute in ObjEntity is completed from DbEntity- Specified by:
objAttributeAdded
in interfaceEntityMergeListener
-
objRelationshipAdded
Description copied from interface:EntityMergeListener
Invoked when a missing relationship in ObjEntity is completed from DbEntity- Specified by:
objRelationshipAdded
in interfaceEntityMergeListener
-
getEntityMergeListener
Returns EntityMergeListener instance, which can set delete rule at relationship change
-