Automatic storage of persistent objects in a relational schema

  • US 5,295,256 A
  • Filed: 12/14/1990
  • Issued: 03/15/1994
  • Est. Priority Date: 12/14/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for a computer to translate an object class hierarchy into a relational schema, comprising in combination the steps of:

  • providing said computer with a computer memory;

    providing in said computer memory a first computer program having at least one class hierarchy organization of object-oriented information and being in source code form, said class hierarchy organization comprising at least one parent class of objects having a first attribute and one derived class including at least one of said objects of said parent class, said derived class having a second attribute, said derived class inheriting said first attribute from said parent class;

    analyzing said first computer program with a second computer program to locate automatically said class hierarchy organization;

    using said second computer program to create automatically from said located class hierarchy organization a first source code routine in said computer memory for defining a first table structure, corresponding to said parent class, including a first table name, said first table structure including;

    a first instance identifier field for storing a unique first instance identifier for each particular object instance of one of said objects, anda first attribute field for storing an attribute instance of said first attribute for said each perpendicular object instance,said first instance identifier field and said first attribute field composing a record of said first table structure;

    using said second computer program to create automatically from said located class hierarchy organization a second source code routine for defining a second table structure, corresponding to said derived class, including a second table name, said second table structure including;

    a second instance identifier field for storing a second instance identifier which identifies said particular object instance of said one of said objects included said derived class,and a second attribute field for storing an attribute instance of said second attribute for said particular object instance of said one of said objects included in said derived class,said second instance identifier field and said second attribute field composing a record of said second table structure; and

    referencing said second identifier field to said first identifier field.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×