Automatic link maintenance to ensure referential integrity constraints
First Claim
1. A method for programmatically enforcing referential integrity constraints among associations between class instances, comprising steps of:
- evaluating a request to set an association end to reflect an association from an instance of a first class to an instance of a second class, setting the requested association end; and
programmatically modifying an inverse association end of the association to reflect an inverse association from the instance of the second class to the instance of the first class.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods, systems, and computer program products for programmatically enforcing referential integrity constraints defined for classes of an arbitrary modeling framework (such as the Meta Object Facility, or “MOF”) when associations among class instances are modified. The present invention relieves the application programmer of the burden of writing code to maintain the links between instances, and applications are therefore considerably easier to write and to maintain, and programmatically maintains inverse links. This reduces the amount of data to be serialized, as the other link can be automatically resolved at the time the inverse link is reconstituted, and also helps in maintaining referential integrity among serialized instances (e.g. where associations are specified in one or more XML Metadata Interchange, or “XML”, documents) because redundant information about the values of the same association will not have to be written across different documents or storage repositories.
19 Citations
15 Claims
-
1. A method for programmatically enforcing referential integrity constraints among associations between class instances, comprising steps of:
-
evaluating a request to set an association end to reflect an association from an instance of a first class to an instance of a second class, setting the requested association end; and
programmatically modifying an inverse association end of the association to reflect an inverse association from the instance of the second class to the instance of the first class. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for programmatically enforcing referential integrity constraints among associations between class instances, wherein the computer program product is embodied on one or more computer readable media and comprises:
-
computer-readable program code means for evaluating a request to set an association end to reflect an association from an instance of a first class to an instance of a second class;
computer-readable program code means for setting the requested association end; and
computer-readable program code means for programmatically modifying an inverse association end of the association to reflect an inverse association from the instance of the second class to the instance of the first class. - View Dependent Claims (8, 9, 11, 15)
-
-
12. A system for programmatically enforcing referential integrity constraints among associations between class instances, comprising:
-
means for evaluating a request to set an association end to reflect an association from an instance of a first class to an instance of a second class;
means for setting the requested association end; and
means for programmatically modifying an inverse association end of the association to reflect an inverse association from the instance of the second class to the instance of the first class. - View Dependent Claims (13, 14)
-
Specification