Methods and apparatus for generating dynamic program files based on input queries that facilitate use of persistent query services
First Claim
1. A computer-implemented method, for automating the process of querying a relational database using at least one of an object and a relational persistent query service on a processor, the method comprising:
- receiving a request from a user for information from the relational database;
translating the received request to at least one of an object and a relational persistent query;
determining if a class associated with a table name already exists in a directory, wherein upon determining the class associated with the table name does not already exist in a directory comprises;
performing a pre-fetch for one or more table columns on the relational database; and
creating classes and other related files for the query using the table names and the table columns;
parsing the query to determine one or more of table names, attributes and attribute types;
generating at least one set of related files, based on the parsing of the query;
updating at least one object and relational persistent configuration file to accept the newly generated at least one set of related files for use by at least one of the object and the relational persistent query service; and
executing at least one of the object and the relational persistent query service based on the at least one of the object and the relational persistent query, wherein the at least one of the object and the relational persistent query service is programmed to;
receive the translated query;
retrieve at least one result stored in at least one of an object cache and the relational database based on at least one of the translated query and the generated at least one set of related files; and
transmit the results to the user.
1 Assignment
0 Petitions
Accused Products
Abstract
A method includes receiving a request for information from a relational database, translating the received request to at least one of an object and a relational persistent query, parsing the query to determine one or more of table names, attributes and attribute types, and generating at least one set of related files. The parsing results are used to update at least one configuration file to accept the related files for use by at least one of the object and the relational persistent query service, and execute at least one of the persistent query services based on the translated queries, wherein the persistent query services are programmed to receive the translated query. Based on the execution of the translated query, the results are either fetched from at least one of the object cache or retrieved from at least one of the database, stored, and the results are transmitted to the user.
63 Citations
18 Claims
-
1. A computer-implemented method, for automating the process of querying a relational database using at least one of an object and a relational persistent query service on a processor, the method comprising:
-
receiving a request from a user for information from the relational database; translating the received request to at least one of an object and a relational persistent query; determining if a class associated with a table name already exists in a directory, wherein upon determining the class associated with the table name does not already exist in a directory comprises; performing a pre-fetch for one or more table columns on the relational database; and creating classes and other related files for the query using the table names and the table columns; parsing the query to determine one or more of table names, attributes and attribute types; generating at least one set of related files, based on the parsing of the query; updating at least one object and relational persistent configuration file to accept the newly generated at least one set of related files for use by at least one of the object and the relational persistent query service; and executing at least one of the object and the relational persistent query service based on the at least one of the object and the relational persistent query, wherein the at least one of the object and the relational persistent query service is programmed to; receive the translated query; retrieve at least one result stored in at least one of an object cache and the relational database based on at least one of the translated query and the generated at least one set of related files; and transmit the results to the user. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for automating a process of querying a relational database using at least one of an object and a relational persistent query service, the system comprising:
-
a partition; a cache area; a processor; a network accessible by at least one user, wherein the network is coupled to the partition; and a relational database, the relational database being coupled to the partition, the partition and the cache area being coupled to the processor, the processor being programmed to; receive a request from a user via the partition for information from the relational database; translate the received request to at least one of an object and a relational persistent query; determine if a class associated with a table name already exists in a directory and perform a pre-fetch for one or more table columns on the relational database and create classes and other related files for the query using the table names and the table columns upon determining the class associated with the table name does not already exist in a directory; parse the query to determine table names, attributes and attribute types; generate at least one set of related files based on the parsed query; update at least one configuration file for use by at least one of an object and a relational persistent query service; and execute at least one of an object and a relational persistent query service based on the at least one of an object and a relational persistent query, wherein the at least one of an object and a relational persistent query service is operable to receive the translated query, retrieve at least one result stored in at least one of the cache area or the relational database based on at least one of the translated query and the generated at least one set of related files, and transmit the results to the user. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. An apparatus, comprising:
-
a partition comprising a network interface, the partition being operable to receive requests from a user and to query a relational database external to the apparatus; an object cache communicatively coupled to said partition; a processor communicatively coupled to the partition and comprising at least one of an object and a relational persistent query service running thereon, the apparatus being configured to; receive a request for information from the relational database from a user via said partition; translate the received request to at least one of an object and a relational persistent query; determine if a class associated with a table name already exists in a directory and perform a pre-fetch for one or more table columns on the relational database and create classes and other related files for the query using the table names and the table columns upon determining the class associated with the table name does not already exist in a directory; generate at least one set of related files based on the at least one of an object and a relational persistent query; execute the at least one of an object and a relational persistent query utilizing said at least one of an object and a relational persistent query service, said at least one of an object and a relational persistent query service operable to retrieve at least one result stored in at least one of said object cache or said relational database based on at least one of the query and the generated at least one set of related files, said apparatus operable to transmit the results to the user through the partition. - View Dependent Claims (17, 18)
-
Specification