Method and apparatus for facilitating a database query using a query criteria template
First Claim
1. A method for facilitating user queries to a database, comprising:
- determining one or more search fields from query criteria generated by a user in a client-side application;
automatically generating one or more query criteria templates from the determined one or more search fields byextracting search-field names, search-field data types, and search-field length from a set of user interface metadata;
obtaining search-field values from the one or more query criteria templates; and
representing the search-field names and search-field values in an XML format which can be stored in a column of the record corresponding to the one or more query criteria templates;
storing the one or more query criteria templates in a single template table in the database,wherein the query template table comprises rows and columns,wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record, andwherein a query criteria template contains information on search-field names and search-field values for a query;
populating a query form with appropriate search-field values; and
allowing a user to select a template from the stored query criteria templates prior to performing a query, thereby reducing manual entry of search-field values for similar queries.
1 Assignment
0 Petitions
Accused Products
Abstract
One embodiment of the present invention provides a system that facilitates user queries to a database. During operation, the system stores one or more query criteria templates in a template table in the database. Each record in the template table corresponds to a query criteria template. A query criteria template contains information on search-field names and search-field values for a query. The system also allows a user to select a template from the stored templates prior to performing a query, thereby reducing the number of search-field values the user has to manually enter. In this way, a number of query criteria templates can be stored in a single table with a column containing parsable query criteria.
-
Citations
27 Claims
-
1. A method for facilitating user queries to a database, comprising:
-
determining one or more search fields from query criteria generated by a user in a client-side application; automatically generating one or more query criteria templates from the determined one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the one or more query criteria templates; and representing the search-field names and search-field values in an XML format which can be stored in a column of the record corresponding to the one or more query criteria templates; storing the one or more query criteria templates in a single template table in the database, wherein the query template table comprises rows and columns, wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record, and wherein a query criteria template contains information on search-field names and search-field values for a query; populating a query form with appropriate search-field values; and allowing a user to select a template from the stored query criteria templates prior to performing a query, thereby reducing manual entry of search-field values for similar queries. - View Dependent Claims (2, 3, 4, 5, 7, 8, 9)
-
-
6. A method for facilitating user queries to a database, comprising:
-
determining one or more search fields from query criteria generated by a user in a client-side application; automatically generating one or more query criteria templates from the determined one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the one or more query criteria templates; and representing the search-field names and search-field values in an XML format which can be stored in a column of the record corresponding to the one or more query criteria templates, wherein a query criteria template is a record which can be stored in a single template table, wherein the query template table comprises rows and columns, and wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record; and communicating the one or more query criteria templates to a database where the one or more query criteria templates can be stored in a template table.
-
-
10. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for facilitating user queries to a database, the method comprising:
-
determining one or more search fields from query criteria generated by a user in a client-side application; automatically generating one or more query criteria templates from the determined one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the query criteria; and representing the search-field names and search-field values in XML format which can be stored in a column of the record corresponding to the one or more query criteria templates; storing the one or more query criteria templates in a single template table in the database, wherein the query template table comprises rows and columns, wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record, and wherein a query criteria template contains information on search-field names and search-field values for a query; and allowing a user to select a template from the stored templates prior to performing a query, thereby reducing manual entry of search-field values for similar queries. - View Dependent Claims (11, 12, 13, 14)
-
-
15. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for facilitating user queries to a database, the method comprising:
-
determining one or more search fields from query criteria generated by a user in a client-side application; automatically generating one or more query criteria templates from the determined one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the query criteria; and representing the search-field names and search-field values in XML format which can be stored in a column of the record corresponding to the one or more query criteria templates, wherein a query criteria template is a record which can be stored in a single template table; wherein the query template table comprises rows and columns, and wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record; and communicating the one or more query criteria templates to a database where the one or more query criteria templates can be stored in a template table. - View Dependent Claims (16, 17, 18)
-
-
19. An apparatus for facilitating user queries to a database, comprising:
-
a processor; a memory; a database; a determining mechanism configured to determine one or more search fields from query criteria generated by a user in a client-side application; a template-generating mechanism configured to automatically generate one or more query criteria templates from the determine one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the query criteria; and representing the search-field names and search-field values in an XML format which can be stored in a column of the record corresponding to the one or more query criteria templates; a storage mechanism configured to store the one or more query criteria templates in a single template table in the database, wherein the query template table comprises rows and columns, wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record, and wherein a query criteria template contains information on search-field names and search-field values for a query; a populating mechanism configured to populate a query form with appropriate search-field values; and a selection mechanism configured to allow a user to select a template from the stored templates prior to performing a query, thereby reducing manual entry of search-field values for similar queries. - View Dependent Claims (20, 21, 22, 23, 24)
-
-
25. An apparatus for facilitating user queries to a database, comprising:
-
a processor; a memory; a database; a determining mechanism configured to determine one or more search fields from query criteria generated by a user in a client-side application; a template-generating mechanism configured to automatically generate one or more query criteria templates from the determined one or more search fields by extracting search-field names, search-field data types, and search-field length from a set of user interface metadata; obtaining search-field values from the query criteria; and representing the search-field names and search-field values in a an XML format which can be stored in a column of the record corresponding to the one or more query criteria templates, wherein a query criteria template is a record which can be stored in a single template, table, wherein the query template table comprises rows and columns, and wherein each row in the query template table corresponds to a query criteria template and comprises one or more of template name, user name, creation time, and flag type corresponding to a specific query criteria template record; and a communication mechanism configured to communicate the one or more query criteria templates to a database where the one or more query criteria templates can be stored in the template table. - View Dependent Claims (26, 27)
-
Specification