Method and system for implementing persistent object services on a relational database
First Claim
1. A method of storing object information in a relational database, comprising the steps of:
- extracting object information relating to an object from a stream;
constructing an initial SQL statement from the extracted object information;
responsive to a failure of the initial SQL statement, constructing a second SQL statement from the extracted object information, wherein the initial SQL statement is an insert statement and the second SQL statement is an update statement, or wherein the initial SQL statement is an update statement and the second SQL statement is an insert statement; and
storing the object information.
0 Assignments
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.
41 Citations
16 Claims
-
1. A method of storing object information in a relational database, comprising the steps of:
-
extracting object information relating to an object from a stream;
constructing an initial SQL statement from the extracted object information;
responsive to a failure of the initial SQL statement, constructing a second SQL statement from the extracted object information, wherein the initial SQL statement is an insert statement and the second SQL statement is an update statement, or wherein the initial SQL statement is an update statement and the second SQL statement is an insert statement; and
storing the object information. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus for storing object information in a relational database, the apparatus comprising:
-
means for extracting object information relating to an object;
means for constructing an initial SQL statement from the extracted object information;
means responsive to a failure of the initial SQL statement for constructing a second SQL statement from the extracted object information, wherein the initial SQL statement is an insert statement and the second SQL statement is an update statement, or wherein the initial SQL statement is an update statement and the second SQL statement is an insert statement; and
means for storing the object information. - View Dependent Claims (10, 11, 12)
-
-
13. A computer program product in a computer readable medium for use in a data processing system for storing object information in a relational database, the computer program product comprising:
-
means for extracting object information relating to an object;
means for constructing an initial SQL statement from the extracted object information;
means responsive to a failure of the initial SQL statement for constructing a second SQL statement from the extracted object information, wherein the initial SQL statement is an insert statement and the second SQL statement is an update statement, or wherein the initial SQL statement is an update statement and the second SQL statement is an insert statement; and
means for storing the object information. - View Dependent Claims (14, 15, 16)
-
Specification