Accessing domain object data stored in a relational database system
First Claim
1. A method for accessing domain object data stored in a relational database system, the method comprising the steps of:
- supplying to a client one or more data items that are attributes of one or more domain objects in a manner that circumvents the one or more domain objects by retrieving the one or more data items directly from one or more relational structures that contain the one or more data items; and
responding to manipulations of said one or more data items at said client by invoking methods of said one or more domain objects.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus are provided for supplying data to users through “query objects”, where the data corresponds to attributes of domain objects and is stored in a relational database. The query objects create a bridge between the information the user wants to see (as expressed in the user interface presented to the user), the object model in which domain logic is implemented, and the relational model in which the data is stored. Thus, data used to populate the user interface is queried directly from the data model and returned in the shape required by the user interface. As the query results are read into memory, objects that model the data using object-oriented techniques are instantiated. Subsequent manipulation of the data is redirected to those objects, thereby preserving data encapsulation and allowing reuse of existing logic.
-
Citations
33 Claims
-
1. A method for accessing domain object data stored in a relational database system, the method comprising the steps of:
-
supplying to a client one or more data items that are attributes of one or more domain objects in a manner that circumvents the one or more domain objects by retrieving the one or more data items directly from one or more relational structures that contain the one or more data items; and
responding to manipulations of said one or more data items at said client by invoking methods of said one or more domain objects.- View Dependent Claims (2, 3, 4, 5, 6)
are required to execute said method; and
have not already been populated.
-
-
5. The method of claim 1 wherein:
-
the client is connected to a server over a network;
the method further comprises the step of, in response to retrieving the one or more data items directly from the one or more relational structures, instantiating said one or more domain objects on said server; and
the step of supplying to said client one or more data items is performed by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by a user interface presented by said client.
-
-
6. The method of claim 2 further comprising the steps of:
-
retrieving a first set of primary keys associated with said one or more data items;
receiving a subsequent request from said client for a second set of one or more data items;
retrieving a second set of primary keys associated with said second set of one or more data items;
determining, based on said first set of primary keys and said second set of primary keys, whether domain objects corresponding to said second set of one or more data items have already been instantiated; and
instantiating the domain objects that correspond to said second set of one or more data items and that have not already been instantiated.
-
-
7. A computer-readable medium carrying one or more sequences of instructions for accessing domain object data stored in a relational database system, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
supplying to a client one or more data items that are attributes of one or more domain objects in a manner that circumvents the one or more domain objects by retrieving the one or more data items directly from one or more relational structures that contain the one or more data items; and
responding to manipulations of said one or more data items at said client by invoking methods of said one or more domain objects. - View Dependent Claims (8, 9, 10, 11, 12)
are required to execute said method; and
have not already been populated.
-
-
11. The computer-readable medium of claim 7 wherein:
-
the client is connected to a server over a network;
the computer-readable medium further comprises instructions for the step of, in response to retrieving the one or more data items directly from the one or more relational structures, instantiating said one or more domain objects on said server; and
the step of supplying to said client one or more data items is performed by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by a user interface presented by said client.
-
-
12. The computer-readable medium of claim 8 further comprising the instructions for the steps of:
-
retrieving a first set of primary keys associated with said one or more data items;
receiving a subsequent request from said client for a second set of one or more data items;
retrieving a second set of primary keys associated with said second set of one or more data items;
determining, based on said first set of primary keys and said second set of primary keys, whether domain objects corresponding to said second set of one or more data items have already been instantiated; and
instantiating the domain objects that correspond to said second set of one or more data items and that have not already been instantiated.
-
-
13. A method for accessing a set of data items stored in a relational database system that are required by a user interface displayed by a client, wherein the set of data items correspond to a set of attributes that belong to one or more domain objects, the method comprising the steps of:
-
retrieving said set of data items to populate said user interface without invoking methods of said domain objects by issuing to a server a query that selects said set of data items; and
responding to manipulations of said set of data items at said client by calling methods provided by said domain objects. - View Dependent Claims (14, 15, 16, 17)
are required to execute said method; and
have not already been populated.
-
-
17. The method of claim 13 wherein:
-
the client is connected to the server over a network;
the method further comprises the step of, in response to retrieving said set of data items, instantiating said one or more domain objects on said server; and
said set of data items are supplied to said client by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by said user interface.
-
-
18. A computer-readable medium carrying one or more sequences of instructions for accessing a set of data items stored in a relational database system that are required by a user interface displayed by a client, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
retrieving said set of data items to populate said user interface without invoking methods of said domain objects by issuing to a server a query that selects said set of data items; and
responding to manipulations of said set of data items at said client by calling methods provided by said domain objects. - View Dependent Claims (19, 20, 21, 22)
are required to execute said method; and
have not already been populated.
-
-
22. The computer-readable medium of claim 18 wherein:
-
the client is connected to the server over a network;
wherein the steps further comprise the step of, in response to retrieving said set of data items, instantiating said one or more domain objects on said server; and
said set of data items are supplied to said client by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by said user interface.
-
-
23. A computer system for accessing domain object data stored in a relational database system, the computer system being configured to perform the following steps:
-
supplying to a client one or more data items that are attributes of one or more domain objects in a manner that circumvents the one or more domain objects by retrieving the one or more data items directly from one or more relational structures that contain the one or more data items; and
responding to manipulations of said one or more data items at said client by invoking methods of said one or more domain objects. - View Dependent Claims (24, 25, 26, 27, 28)
are required to execute said method; and
have not already been populated.
-
-
27. The computer system of claim 23 wherein:
-
the client is connected to a server over a network;
the steps further comprise the step of, in response to retrieving the one or more data items directly from the one or more relational structures, instantiating said one or more domain objects on said server; and
the step of supplying to said client one or more data items is performed by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by a user interface presented by said client.
-
-
28. The computer system of claim 24, wherein the steps further comprise:
-
retrieving a first set of primary keys associated with said one or more data items;
receiving a subsequent request from said client for a second set of one or more data items;
retrieving a second set of primary keys associated with said second set of one or more data items;
determining, based on said first set of primary keys and said second set of primary keys, whether domain objects corresponding to said second set of one or more data items have already been instantiated; and
instantiating the domain objects that correspond to said second set of one or more data items and that have not already been instantiated.
-
-
29. A computer system for accessing a set of data items stored in a relational database system that are required by a user interface displayed by a client, wherein the set of data items correspond to a set of attributes that belong to one or more domain objects, said computer system configured to perform the steps of:
-
retrieving said set of data items to populate said user interface without invoking methods of said domain objects by issuing to a server a query that selects said set of data items; and
responding to manipulations of said set of data items at said client by calling methods provided by said domain objects. - View Dependent Claims (30, 31, 32, 33)
are required to execute said method; and
have not already been populated.
-
-
33. The computer system of claim 29 wherein:
-
the client is connected to the server over a network;
the steps further comprise the step of, in response to retrieving said set of data items, instantiating said one or more domain objects on said server; and
said set of data items are supplied to said client by sending, from said server to said client over said network, data for only those attributes of said one or more domain objects that are required by said user interface.
-
Specification