Implementing persistent object services (POS) on top of a relational database
First Claim
1. A method for interfacing an object-oriented application to a set of relational databases, comprising the steps of:
- mapping persistent objects to a set of relational database tables including a top level table and a set of one or more child tables, wherein each object is mapped to one or more tables based on the object'"'"'s attributes and the object'"'"'s relationships with other objects, wherein the top level table stores base attributes and a given child table stores only extended attributes of inherited objects;
in response to a request from the application to store an object in a given one of the relational databases, converting persistent object operations to a sequence of SQL statements to enable the object to be stored in the relational database; and
in response to a request from the application to restore the object from the given one of the relational databases, retrieving object at tribute information from the relational database and generating the object.
1 Assignment
0 Petitions
Accused Products
Abstract
A persistent object service (POS) that interfaces to a set of one or more relational database management systems. A persistent object is mapped to one or more tables in a relational database based on the object'"'"'s attribute types and the object'"'"'s relationships with other objects. If the object inherits from another object, the mapping creates multiple tables, a top level table for base attributes, and a set of one or more child tables that contain extended attributes of the inherited objects. A routine for storing an object converts persistent object operations to a sequence of SQL statements for storing the object in the relational database.
-
Citations
5 Claims
-
1. A method for interfacing an object-oriented application to a set of relational databases, comprising the steps of:
-
mapping persistent objects to a set of relational database tables including a top level table and a set of one or more child tables, wherein each object is mapped to one or more tables based on the object'"'"'s attributes and the object'"'"'s relationships with other objects, wherein the top level table stores base attributes and a given child table stores only extended attributes of inherited objects;
in response to a request from the application to store an object in a given one of the relational databases, converting persistent object operations to a sequence of SQL statements to enable the object to be stored in the relational database; and
in response to a request from the application to restore the object from the given one of the relational databases, retrieving object at tribute information from the relational database and generating the object. - View Dependent Claims (2)
extracting object information relating to an object from a stream;
constructing an insert statement from the extracted object information;
responsive to a failure of the insert statement, constructing an update statement from the extracted object information; and
storing the object information.
-
-
3. A computer program product in a computer readable medium for interfacing an object-oriented application to a set of relational databases, comprising the steps of:
-
means for mapping persistent objects to a set of relational database tables including a top level table and a set of one or more child tables, wherein each object is mapped to one or more tables based on the object'"'"'s attributes and the object'"'"'s relationships with other objects, and wherein the top level table stores base attributes and a given child table stores only extended attributes of inherited objects;
means responsive to a request from the application to store an object in a given one of the relational databases for converting persistent object operations to a sequence of SQL statements to enable the object to be stored in the relational database; and
means responsive to a request from the application to restore the object from the given one of the relational databases for retrieving object attribute information from the relational database and generating the object.
-
-
4. In a distributed object oriented computer environment having a set of one or more relational database management systems, the improvement comprising:
-
means for mapping persistent objects to a set of relational database tables including a top level table and a set of one or more child tables, wherein each object is mapped to one or more tables based on the object'"'"'s attributes and the object'"'"'s relationships with other objects, and wherein the top level table stores base attributes and a given child table stores only extended attributes of inherited objects;
means responsive to a request to store an object in a given one of the relational databases for converting persistent object operations to a sequence of SQL statements to enable the object to be stored in the relational database; and
means responsive to a request to restore the object from the given one of the relational databases for retrieving object attribute information from the relational database and generating the object.
-
-
5. In a relational database management system (RDBMS), the improvement comprising:
-
means for mapping persistent objects to a set of relational database tables including a top level table and a set of one or more child tables, wherein each object is mapped to one or more tables based on the object'"'"'s attributes and the object'"'"'s relationships with other objects, and wherein the top level table stores base attributes and a given child table stores only extended attributes of inherited objects;
means responsive to a request to store an object in a given one of the relational databases for converting persistent object operations to a sequence of SQL statements to enable the object to be stored in the relational database; and
means responsive to a request to restore the object from the given one of the relational databases for retrieving object attribute information from the relational database and generating the object.
-
Specification