System, method, and computer program product for efficiently translating relational tuples to object-oriented objects
First Claim
1. A computer program product comprising a computer readable medium having computer program logic recorded thereon for enabling a processor in a computer system to provide access to a database management system from an object-oriented environment, the database management system including a plurality of tuples, said computer program product comprising:
- receiving means for enabling said processor to receive an object query from the object oriented environment;
first generating means for enabling said processor to generate a set of relational database queries in response to receiving the object query, said set of relational database queries used to retrieve tuples from the database management system;
second generating means for enabling said processor to generate one or more application objects in response to receiving said tuples from the database management system, said second generating means comprising;
application object instantiation means for enabling said processor to instantiate said one or more application objects;
base attribute setting means for enabling said processor to set base attributes of said one or more application objects using information in said tuples;
intermediate object creating means for enabling said processor to create one or more intermediate objects using information in said tuples to represent relationship attributes of said one or more application objects requiring dereferencing; and
relationship attribute setting means for enabling said processor to set relationship attributes in said one or more application objects by swizzling said intermediate objects.
0 Assignments
0 Petitions
Accused Products
Abstract
A procedure for translating tuples received from a relational database management system (RDBMS) to object-oriented objects is described. The procedure operates by instantiating one or more application objects, and then setting base attributes of the application objects using information in the tuples. One or more intermediate objects are created using information in the tuples to represent those application objects having relationship attributes requiring dereferencing. Relationship attributes in the application objects are then set by swizzling the intermediate objects (rather than by swizzling the application objects themselves).
-
Citations
34 Claims
-
1. A computer program product comprising a computer readable medium having computer program logic recorded thereon for enabling a processor in a computer system to provide access to a database management system from an object-oriented environment, the database management system including a plurality of tuples, said computer program product comprising:
-
receiving means for enabling said processor to receive an object query from the object oriented environment; first generating means for enabling said processor to generate a set of relational database queries in response to receiving the object query, said set of relational database queries used to retrieve tuples from the database management system; second generating means for enabling said processor to generate one or more application objects in response to receiving said tuples from the database management system, said second generating means comprising; application object instantiation means for enabling said processor to instantiate said one or more application objects; base attribute setting means for enabling said processor to set base attributes of said one or more application objects using information in said tuples; intermediate object creating means for enabling said processor to create one or more intermediate objects using information in said tuples to represent relationship attributes of said one or more application objects requiring dereferencing; and relationship attribute setting means for enabling said processor to set relationship attributes in said one or more application objects by swizzling said intermediate objects. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform method steps for providing access to a database management system from an object-oriented environment, the database management system including a plurality of tuples, said method steps comprising:
-
receiving an object query from the object oriented environment; generating a set of relational database queries in response to receiving the object query; retrieving tuples from the database management system using said set of relational database queries; generating one or more application objects in response to receiving said tuples from the database management system, the step of generating comprising the steps of; (1) instantiating said one or more application objects; (2) setting base attributes of said one or more application objects using information in said tuples; (3) creating one or more intermediate objects using information in said tuples to represent relationship attributes of said one or more application objects requiring dereferencing; and (4) setting relationship attributes in said one or more application objects by swizzling said intermediate objects. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34)
-
Specification