Object oriented query model and process for complex heterogeneous database queries
First Claim
1. A computer system having one or more central processing units and one or more memories, the computer system further comprising:
- an interface to one or more databases, one of the databases being a specific database;
one or more base query objects having one or more base query object methods, one or more base variables, and one or more base objects, one or more of the base query object methods being specific to the specific database and capable of querying the specific database;
one or more query objects, each of the query objects derived from one of the base objects, each of the query objects having a query type, one or more query object methods, one or more query object variables, and one or more query object objects, containing one or more query object methods capable of querying the specific database to obtain a typed result having the respective type;
one or more compound query objects, each of the compound query objects derived from one of the base objects, each of the compound query objects having one of the query types, one or more compound query object methods, one or more compound query object variables, and one or more compound query object objects, containing one or more compound query object method capable of querying the specific database to obtain a typed result having the respective type;
one or more annotator objects, derived from one of the base query objects, the annotator objects having operator objects, the annotator objects being used with the specific database;
one or more graphical user interfaces (GUI) having one or more query elements, one or more operators and one or more data, each query element being of one of the query types but being database independent, the query elements, operators, and one or more groupings of query elements being selectable;
a process that, for each GUI query element, associates one of the query objects with one or more of the GUI query elements by entering one or more of the data in one or more of the respective query object variables or query objects to create a query object instance, associates one or more of the operators with one or more of the operator objects, and defines one or more of the compound query objects by the groupings so that the associated query objects are related by the operators to create a compound query expressions according to the grouping; and
a linearize process that transforms the compound query expression into a query expression that can be executed for the specific database.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer system has an interface to one or more databases, one or more base query objects, query objects, compound queries, annotator objects and graphical user interfaces (GUI'"'"'s). The base query objects have one or more base query object methods, base variables, and base objects, the base query object methods being specific to the specific database and capable of querying the specific database. Each of the query objects derived from one of the base objects, and has a query type, one or more query object methods, query object variables, and query object objects. Each query object method is capable of querying a specific database to obtain a type result having the respective type. The compound query has one or more compound query methods, compound query variables, and compound query object objects. The operator objects, are derived from one of the base query objects that are used with the specific database. (GUI) has one or more query elements with one or more operators. The query elements, operators, and conditions are user selectable. Each query element, operates on the query object with the same type as the query element to create an instance of the query object with the query element. The compound query object instance uses the instances and the operator object instances to create an a query expression for the specific database. Therefore the input in the GUI is translated into a single compound query object.
160 Citations
16 Claims
-
1. A computer system having one or more central processing units and one or more memories, the computer system further comprising:
-
an interface to one or more databases, one of the databases being a specific database;
one or more base query objects having one or more base query object methods, one or more base variables, and one or more base objects, one or more of the base query object methods being specific to the specific database and capable of querying the specific database;
one or more query objects, each of the query objects derived from one of the base objects, each of the query objects having a query type, one or more query object methods, one or more query object variables, and one or more query object objects, containing one or more query object methods capable of querying the specific database to obtain a typed result having the respective type;
one or more compound query objects, each of the compound query objects derived from one of the base objects, each of the compound query objects having one of the query types, one or more compound query object methods, one or more compound query object variables, and one or more compound query object objects, containing one or more compound query object method capable of querying the specific database to obtain a typed result having the respective type;
one or more annotator objects, derived from one of the base query objects, the annotator objects having operator objects, the annotator objects being used with the specific database;
one or more graphical user interfaces (GUI) having one or more query elements, one or more operators and one or more data, each query element being of one of the query types but being database independent, the query elements, operators, and one or more groupings of query elements being selectable;
a process that, for each GUI query element, associates one of the query objects with one or more of the GUI query elements by entering one or more of the data in one or more of the respective query object variables or query objects to create a query object instance, associates one or more of the operators with one or more of the operator objects, and defines one or more of the compound query objects by the groupings so that the associated query objects are related by the operators to create a compound query expressions according to the grouping; and
a linearize process that transforms the compound query expression into a query expression that can be executed for the specific database. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
evaluating each sub-query;
creating common table expressions (CTE);
creating a single SQL expression; and
creating CTE objects where the CmE object contains a query string which expresses the query as encapsulated by a single query or by the logical expression of two or more queries.
-
-
14. A computer executed method comprising the steps of:
-
evaluating one or more base sub-query objects having one or more base query object methods, one or more base variables, and one or more base objects, one or more of the base query object methods being specific to a specific database and capable of querying the spec database;
deriving one or more query objects from one of the base objects, each of the query objects having a query type, one or more query object methods, one or more query object variables, and one or more query object objects, the query objects objects containing one or more query object methods capable of querying the specific database to obtain a typed result having the respective type;
deriving one or more compound query objects derived from one of the base objects, each of the compound query objects having one of the query types, one or more compound query object methods, one or more compound query object variables, and one or more compound query object objects, the compound query object objects containing one or more compound query object methods capable of querying the specific database to obtain a typed result having the respective type;
deriving one or more annotator objects from one of the base query objects, the annotator objects having operator objects, the annotator objects being used with the specific database;
providing one or more graphical use interfaces (GUI) having one or more query elements, one or more operators and one or more data, each query element being of one of the query types but being database independent, the query elements, operators, and one or more groupings of query elements being selectable;
for each GUI query element, associating one of the query objects with one or more of the GUI query elements by entering one or more of the data in one or more of the respective query object variables or query objects to create a query object instance, associating one or more of the operators with one or more of the operator objects, and defining one or more of the compound query objects by the groupings so that the associated query objects are related by the operators to create a compound query expressions according to the grouping; and
transforming the compound query expression into a query expression that can be executed for the specific database.
-
-
15. A computer system comprising:
-
means for evaluating one or more base sub-query objects having one or more base query object methods, one or more base variables, and one or more base objects, one or more of the base query object methods being specific to a specific database and capable of querying the specific database;
means for deriving one or more query objects from one of the base objects, each of the query objects having a query type, one or more query object methods, one or more query object variables, and one or more query object objects, the query objects objects containing one or more query object methods capable of querying the specific database to obtain a typed result having the respective type;
means for deriving one or more compound query objects derived from one of the base objects, each of the compound query objects having one of the query types, one or more compound query object methods, one or more compound query object variables, and one or more compound query object objects, the compound query object objects containing one or more compound query object methods capable of querying the specific database to obtain a typed result having the respective type;
means for deriving one or more annotator objects from one of the base query objects, the annotator objects having operator objects, the annotator objects being used with the specific database;
means for providing one or more graphical user interfaces (GUI) having one or more query elements, one or more operators and one or more data, each query element being of one of the query types but being database independent, the query elements, operators, and one or more groupings of query elements being selectable;
for each GUI query element, means for associating one of the query objects with one or more of the GUI query elements by entering one or more of the data in one or more of the respective query object variables or query objects to create a query object instance, associating one or more of the operators with one or more of the operator objects, and defining one or more of the compound query objects by the groupings so that the associated query objects are related by the operators to create a compound query expressions according to the grouping; and
means for transforming the compound query expression into a query expression that can be executed for the specific database.
-
-
16. A computer program product which performs the steps of:
-
evaluating one or more base sub-query objects having one or more base query object methods, one or more base variables, and one or more base objects, one or more of the base query object methods being specific to a specific database and capable of querying the specific database;
deriving one or more query objects from one of the base objects, each of the query objects having a query type, one or more query object methods, one or more query object variables, and one or more query object objects, the query objects objects containing one or more query object methods capable of querying the specific database to obtain a typed result having the respective type;
deriving one or more compound query objects derived from one of the base objects, each of the compound query objects having one of the query types, one or more compound query object methods, one or more compound query object variables, and one or more compound query object objects, the compound query object objects containing one or more compound query object methods capable of querying the specific database to obtain a typed result having the respective type;
deriving one or more annotator objects from one of the base query objects, the annotator objects having operator objects, the annotator objects being used with the specific database;
providing one or more graphical user interfaces (GUI) having one or more query elements, one or more operators and one or more data, each query element being of one of the query types but being database independent, the query elements, operators, and one or more groupings of query elements being selectable;
for each GUI query element, associating one of the query objects with one or more of the GUI query elements by entering one or more of the data in one or more of the respective query object variables or query objects to create a query object instance, associating one or more of the operators with one or more of the operator objects, and defining one or more of the compound query objects by the groupings so that the associated query objects are related by the operators to create a compound query expressions according to the grouping; and
transforming the compound query expression into a query expression that can be executed for the specific database.
-
Specification