Method for providing stand-in objects
First Claim
1. A method for managing object relationships comprising:
- instantiating a first object having a relationship with a second object; and
creating a fault object to stand in place of said second object with respect to said relationship;
wherein the fault object is configured (1) to appear to the first object in at least one respect to be the same as the second object and (2) to not retrieve at instantiation of the fault object, from a data source, a data that the second object would have retrieved from the data source at instantiation of the second object;
wherein the fault object is further configured to transform itself into or replace itself with the second object in the event an indication is received that a method associated with the data has been invoked.
0 Assignments
0 Petitions
Accused Products
Abstract
A method for providing stand-in objects, where relationships among objects are automatically resolved in an object oriented relational database model without the necessity of retrieving data from the database until it is needed. A “fault” class is defined, as well as fault objects whose data haven'"'"'t yet been fetched from the database. An object that'"'"'s created for the destination of a relationship whenever an object that includes the relationship is fetched from the database. When an object is fetched that has relationships, fault objects are created to “stand-in” for the destination objects of those relationships. Fault objects transform themselves into the actual enterprise objects—and fetch their data—the first time they'"'"'re accessed. Subsequently, messages sent to the target objects are responded to by the objects themselves.
-
Citations
18 Claims
-
1. A method for managing object relationships comprising:
-
instantiating a first object having a relationship with a second object; and creating a fault object to stand in place of said second object with respect to said relationship; wherein the fault object is configured (1) to appear to the first object in at least one respect to be the same as the second object and (2) to not retrieve at instantiation of the fault object, from a data source, a data that the second object would have retrieved from the data source at instantiation of the second object; wherein the fault object is further configured to transform itself into or replace itself with the second object in the event an indication is received that a method associated with the data has been invoked. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer program product for managing object relationships, the computer program product being embodied in a computer readable medium and comprising computer instructions for:
-
instantiating a first object having a relationship with a second object; and creating a fault object to stand in place of said second object with respect to said relationship; wherein the fault object is configured (1) to appear to the first object in at least one respect to be the same as the second object and (2) to not retrieve at instantiation of the fault object, from a data source, a data that the second object would have retrieved from the data source at instantiation of the second object; wherein the fault object is further configured to transform itself into or replace itself with the second object in the event an indication is received that a method associated with the data has been invoked. - View Dependent Claims (15, 16, 17)
-
-
18. A computer system, comprising:
-
a memory; and a processor coupled to the memory and configured to; create in said memory a first object having a relationship with a second object; and create a fault object to stand in place of said second object with respect to said relationship; wherein the fault object is configured (1) to appear to the first object in at least one respect to be the same as the second object and (2) to not retrieve at instantiation of the fault object, from a data source, a data that the second object would have retrieved from the data source at instantiation of the second object; wherein the fault object is further configured to transform itself into or replace itself with the second object in the event an indication is received that a method associated with the data has been invoked.
-
Specification