×

Schema mapping to a legacy table with primary and foreign key support

  • US 5,956,725 A
  • Filed: 11/26/1997
  • Issued: 09/21/1999
  • Est. Priority Date: 11/26/1997
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented method for mapping an object having an object class and an independent handle having a handle class between object-oriented schema and relational database schema, said object class defining fields represented by instance variables, said handle class defining fields represented by instance variables, said relational database schema defined by a table having a plurality of columns for storing a persistent state of said object, the method comprising the steps of:

  • determining whether a group of one or more of said columns is pre-defined as a primary key;

    selecting a group of one or more fields represented by instance variables of said handle class defining a unique identity for said object;

    generating mapping software code in a high-level language, said mapping software code defining a mapping between said group of columns pre-defined as a primary key and said instance variables representing said fields of said handle class defining a unique identity for said object;

    retrieving, in response to an instantiation request at application program runtime, a group of one or more values from said group of one or more columns defined as a primary key; and

    instantiating a handle object of said handle class in response to said request, said handle object having said instance variables representing said group of one or more fields of said handle class defining a unique identity for said object set to said values in accordance with said mapping.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×