Method and system for accessing relational databases using objects
First Claim
1. A computer implemented method of accessing data contained in a relational database from within an object oriented environment, the method comprising the steps of:
- (a) storing a data set within the relational database;
(b) receiving, within the object oriented environment, a request for data from the relational database;
(c) creating a first object within the object oriented environment, the first object containing at least one reference to a second object, the second object comprising a placeholder object, such that memory space accessible by said object oriented environment is allocated for said first object;
(d) retrieving data from the data set, wherein the data retrieved comprises data for the first object, but wherein data for the second object is not retrieved;
(e) storing the data retrieved in step (d) into the first object;
(f) returning the first object as a response to the request message;
(g) allocating memory space for said placeholder object; and
(h) setting at least one reference between said first object and said placeholder object.
7 Assignments
0 Petitions
Accused Products
Abstract
An object oriented system for accessing an external relational database from within the object oriented system. The system creates an object and fills it with data values retrieved from the database. References from the object to other objects include pointers to preexisting objects or pointers to placeholder objects. Later retrieves fill in the placeholder objects, eliminating the need to reset the pointers. Caching, utilizing static data and static functions, is performed by each class of objects. Sub-objects are used to create different logical views of data from the database, and query access to the database is provided by a query engine which builds query language statements on demand.
-
Citations
21 Claims
-
1. A computer implemented method of accessing data contained in a relational database from within an object oriented environment, the method comprising the steps of:
-
(a) storing a data set within the relational database; (b) receiving, within the object oriented environment, a request for data from the relational database; (c) creating a first object within the object oriented environment, the first object containing at least one reference to a second object, the second object comprising a placeholder object, such that memory space accessible by said object oriented environment is allocated for said first object; (d) retrieving data from the data set, wherein the data retrieved comprises data for the first object, but wherein data for the second object is not retrieved; (e) storing the data retrieved in step (d) into the first object; (f) returning the first object as a response to the request message; (g) allocating memory space for said placeholder object; and (h) setting at least one reference between said first object and said placeholder object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A retriever object within an object oriented environment, the retriever object for accessing data contained in a database from within the object oriented environment, said database being arranged in tables and columns, wherein the retriever object comprises:
-
means for receiving a request for data from the relational database; means for creating a first object within the object oriented environment, the first object containing at least one reference to a second object within the object oriented environment; means for generating a query command for retrieving data from the database, wherein the data retrieved comprises data for the first object, the query command being in the query language of the relational database, and wherein said means for generating provides said query command with mapping data, said mapping data comprising table and column identifiers, and is responsive to the request; means for storing the data retrieved into the first object; and means for returning the first object as a response to the request message; wherein said retriever object inherits said mapping data from a generic view retriever class. - View Dependent Claims (14, 15, 16, 17, 18, 19)
-
-
20. A computer implemented method of accessing data contained in a relational database from within an object oriented environment, comprising the steps of:
-
(a) storing a data set within the relational database; (b) receiving, within the object oriented environment, a request for data from the relational database; (c) creating an object within the object oriented environment; (d) retrieving data from the data set, wherein the data retrieved comprises data for the object; (e) storing the data retrieved in step (d) into the object on a cache such that said object has a status property for indicating whether an object is available on the cache and wherein said cache status may indicate an object that has been retrieved but not put on the cache; and
,(f) returning the first object as a response to the request message.
-
-
21. A computer implemented method of accessing data contained in a relational database from within an object oriented environment, the method comprising the steps of:
-
(a) storing a data set within the relational database; (b) receiving, within the object oriented environment, a request for data from the relational database; (c) creating an object within the object oriented environment; (d) retrieving data from the data set, wherein the data retrieved comprises data for the object; (e) storing the data retrieved in step (d) into the object; (f) returning the first object as a response to the request message; (g) providing said object with a status for determining whether the object stored in the cache is consistent with the data stored in the data storage area, wherein the status comprises a dirty state, the dirty state indicating that an object has been modified and is not consistent with the data stored in the data storage area.
-
Specification