Legacy subclassing
First Claim
1. A computer-implemented method for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the method comprising the steps of:
- generating mapping software code in a high-level language, said mapping software code defining a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and
constructing a handle including a reference to said class.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for mapping between relational schema and object schema, wherein the relational schema includes a table having a tiebreaker column. In accordance with the present invention, an object-oriented application program may instantiate a persistent dependent object with one of two or more specific instances that is selected in response to the value of a data element in a tiebreaker column. Alternatively, an object-oriented application program may instantiate a persistent entity object in accordance with one of two or more entity classes that is selected in response to the value of a data element in a tiebreaker column.
93 Citations
14 Claims
-
1. A computer-implemented method for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the method comprising the steps of:
-
generating mapping software code in a high-level language, said mapping software code defining a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and constructing a handle including a reference to said class. - View Dependent Claims (2)
-
-
3. A computer-implemented method for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the method comprising the steps of:
-
generating mapping software code in a high-level language, said mapping software code defining a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values; and initiating an application program run-time call to an object database driver referencing an object, said object database driver accessing data elements from said attribute columns of said data store and associating said data elements with instance variables of said object in response to said application program run-time call and said mapping software code. - View Dependent Claims (4)
-
-
5. A computer-implemented method for selectively mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the method comprising the steps of:
-
generating mapping software code in a high-level language; wherein if said object is an entity object said mapping software code defines a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and wherein if said object is a dependent object said mapping software code defines a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values.
-
-
6. A system for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the system comprising:
-
a mapping software code generator for generating mapping software code in a high-level language, said mapping software code defining a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and a handle constructor for constructing a handle including a reference to said class. - View Dependent Claims (7)
-
-
8. A system for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the system comprising:
-
a mapping software code generator for generating mapping software code in a high-level language, said mapping software code defining a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values; and an object database driver, wherein an application program run-time call from an application program running on a computer references an object, and said object database driver accesses data elements from said attribute columns of said data store and associates said data elements with instance variables of said object in response to said application program run-time call and said mapping software code. - View Dependent Claims (9)
-
-
10. A system for selectively mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, the system comprising:
-
a mapping software code generator for generating mapping software code in a high-level language, said mapping software code generator producing, in response to a selection provided by a user, either an entity mapping or a dependent mapping; wherein if said user selects entity mapping said mapping software code defines a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and wherein if said user selects dependent mapping said mapping software code defines a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values.
-
-
11. A computer program product for use in a computer system for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, said computer program product comprising a signal-bearing medium carrying thereon:
-
mapping software code defining a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and handle construction software code for constructing a handle including a reference to said class.
-
-
12. A computer program product for mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, said computer program product comprising a signal-bearing medium carrying thereon:
-
mapping software code defining a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values; and a connection between said mapping software code and a selected specific instance of said class, wherein an application program run-time call from an application program running on a computer references an object, and said object database driver accesses data elements from said attribute columns of said data store and associates said data elements with instance variables of said object in response to said application program run-time call and said mapping software code. - View Dependent Claims (13)
-
-
14. A computer program product for selectively mapping an object between object-oriented schema and relational data store schema, said object having a class, said relational data store schema defined by a plurality of attribute columns and a tiebreaker column, said computer program product comprising a signal-bearing medium carrying thereon:
-
a mapping software code generator for generating mapping software code in a high-level language, said mapping software code generator producing, in response to a selection provided by a user, either an entity mapping or a dependent mapping; wherein if said user selects entity mapping, said mapping software code defines a selection of said class from among a plurality of classes in response to a value in said tiebreaker column, each class of said plurality of classes corresponding to one of a plurality of values; and wherein if said user selects dependent mapping, said mapping software code defines a selection of a specific instance of said class from among a plurality of specific instances of said class in response to a value in said tiebreaker column, each specific instance corresponding to one of a plurality of values.
-
Specification