Method for providing stand-in objects
First Claim
1. A method for deferring instantiation of an object in an object-oriented programming environment, comprising:
- instantiating a first object having a relationship with a second object; and
instantiating a fault object as a placeholder for the second object;
wherein instantiation of the second object is deferred until a message for the second object can not be responded to by the fault object; and
wherein the fault object is configured to respond, on behalf of and in the same manner as the second object, to a subset including at least one message but not all messages comprising a set of messages to which the second object is configured to respond.
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.
6 Citations
19 Claims
-
1. A method for deferring instantiation of an object in an object-oriented programming environment, comprising:
-
instantiating a first object having a relationship with a second object; and instantiating a fault object as a placeholder for the second object; wherein instantiation of the second object is deferred until a message for the second object can not be responded to by the fault object; and
wherein the fault object is configured to respond, on behalf of and in the same manner as the second object, to a subset including at least one message but not all messages comprising a set of messages to which the second object is configured to respond. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
-
15. A system for deferring instantiation of an object in an object-oriented programming environment, comprising:
-
a processor configured to; instantiate a first object having a relationship with a second object; and instantiate a fault object as a placeholder for the second object; and a memory coupled to the processor and configured to provide the processor with instructions; wherein instantiation of the second object is deferred until a message for the second object can not be responded to by the fault object; and
wherein the fault object is configured to respond, on behalf of and in the same manner as the second object, to a subset including at least one message but not all messages comprising a set of messages to which the second object is configured to respond. - View Dependent Claims (16, 17, 18, 19)
-
Specification