Smart database
First Claim
Patent Images
1. A computer-implemented method for storing data in a database, the data containing ordinary data and meta data, the method comprising:
- persisting the meta data in the database as at least a parent and a child object definition, each of said object definitions linked to one or more attribute definitions, each of said object definitions describing a format in which to store ordinary data, wherein each of said object definitions includes an identification and a table name;
saving the ordinary data in the database as at least a parent instance storing ordinary data in the format described by the parent object definition and a child instance storing ordinary data in the format described by the child object definition, each of said instances of object definitions linked to one or more instances of attribute definitions, wherein each of said attribute definitions includes an identification and a column name; and
storing identifiers of said parent and child object definition and said parent and child instances of said parent and child object in a relationship table in the database, wherein said storing includes storing an identification of a parent object definition and an identification of a parent instance of said parent object definition in a relationship table along with an identification of a child object definition and an identification of a child instance of said child object definition.
1 Assignment
0 Petitions
Accused Products
Abstract
A solution is provided wherein only primary keys are used as meta-data to construct many-to-many relationships between table, resulting in amore robust, efficient database structure. Once tables of user-specific data are bound to the database as meta-data using their primary keys, the system may automatically ensure the handling of the records as related units. This eliminates the traditional heavy-weight dependence on foreign key relationships.
43 Citations
12 Claims
-
1. A computer-implemented method for storing data in a database, the data containing ordinary data and meta data, the method comprising:
-
persisting the meta data in the database as at least a parent and a child object definition, each of said object definitions linked to one or more attribute definitions, each of said object definitions describing a format in which to store ordinary data, wherein each of said object definitions includes an identification and a table name; saving the ordinary data in the database as at least a parent instance storing ordinary data in the format described by the parent object definition and a child instance storing ordinary data in the format described by the child object definition, each of said instances of object definitions linked to one or more instances of attribute definitions, wherein each of said attribute definitions includes an identification and a column name; and storing identifiers of said parent and child object definition and said parent and child instances of said parent and child object in a relationship table in the database, wherein said storing includes storing an identification of a parent object definition and an identification of a parent instance of said parent object definition in a relationship table along with an identification of a child object definition and an identification of a child instance of said child object definition. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus for storing data in a database, the data containing ordinary data and meta data, the apparatus comprising:
-
a memory; an object definition and attribute definition meta data persister configured to persist the meta data in the database as at least a parent and a child object definition, each of said object definitions linked to one or more attribute definitions, each of said object definitions describing a format in which to store ordinary data, wherein each of said object definitions includes an identification and a table name; an object definition instance and attribute definition instance ordinary data saver configured to save the ordinary data in the database as at least a parent instance storing ordinary data in the format described by the parent object definition and a child instance storing ordinary data in the format described by the child object definition, each of said instances of object definitions linked to one or more instances of attribute definitions, wherein each of said attribute definitions includes an identification and a column name; an object definition and object definition instance relationship table storer coupled to said object definition and attribute definition meta data persister and to said object definition instance and attribute definition instance ordinary data saver, configured to store identifiers of said parent and child object definition and said parent and child instances of said parent and child object in a relationship table in the database, wherein said storing includes storing an identification of a parent object definition and an identification of a parent instance of said parent object definition in a relationship table along with an identification of a child object definition and an identification of a child instance of said child object definition; and a processor configured to operate the object definition and attribute definition meta data persister, the definition instance and attribute definition instance ordinary data saver, and the object definition and object definition instance relationship table storer.
-
-
7. An apparatus for storing data in a database, the data containing ordinary data and meta data, wherein the meta data describes a name for each item of ordinary data, the apparatus comprising:
-
means for persisting the meta data in the database as at least a parent and a child object definition, each of said object definitions linked to one or more attribute definitions, each of said object definitions describing a format in which to store ordinary data, wherein each of said object definitions includes an identification and a table name; means for saving the ordinary data in the database as at least a parent instance storing ordinary data in the format described by the parent object definition and a child instance storing ordinary data in the format described by the child object definition, each of said instances of object definitions linked to one or more instances of attribute definitions, wherein each of said attribute definitions includes an identification and a column name; means for storing identifiers of said parent and child object definition and said parent and child instances of said parent and child object in a relationship table in the database, wherein said storing includes storing an identification of a parent object definition and an identification of a parent instance of said parent object definition in a relationship table along with an identification of a child object definition and an identification of a child instance of said child object definition; and a processor coupled to the means for persisting, the means for saving, and the means for storing. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method for storing data in a database, the data containing ordinary data and meta data, wherein the meta data describes a name for each item of ordinary data, the method comprising:
-
persisting the meta data in the database as at least a parent and a child object definition, each of said object definitions linked to one or more attribute definitions, each of said object definitions describing a format in which to store ordinary data, wherein each of said object definitions includes an identification and a table name; saving the ordinary data in the database as at least a parent instance storing ordinary data in the format described by the parent object definition and a child instance storing ordinary data in the format described by the child object definition, each of said instances of object definitions linked to one or more instances of attribute definitions, wherein each of said attribute definitions includes an identification and a column name; and storing identifiers of said parent and child object definition and said parent and child instances of said parent and child object in a relationship table in the database, wherein said storing includes storing an identification of a parent object definition and an identification of a parent instance of said parent object definition in a relationship table along with an identification of a child object definition and an identification of a child instance of said child object definition.
-
Specification