Persistent query system for automatic on-demand data subscriptions from mobile devices
First Claim
Patent Images
1. A method for creating a data subscription to a remote database, comprising:
- marking a query to be performed on a table located within the remote database as persistent within a meta-data definition of the query, indicating that results for the query are persisted to a local database;
generating, in a processor, a persistent query entity based on the meta-data definition, wherein the persistent query entity is mapped to a persistent query table in the local database, each row of the persistent query table representing an invocation of the query with a particular set of parameters;
uploading the persistent query table to the remote database to create a subscription for the query corresponding to the particular set of parameters; and
generating query execution code to;
consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database,consult the local database if the result of the instance of the persistent query is contained in the local database, andcreate an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database.
2 Assignments
0 Petitions
Accused Products
Abstract
A system, method, and computer program product are provided for creating a data subscription to a remote database. Additionally, a system, method, and computer program product are provided for creating a persistent query, wherein a table in a remote database is represented by a meta-data definition.
49 Citations
26 Claims
-
1. A method for creating a data subscription to a remote database, comprising:
-
marking a query to be performed on a table located within the remote database as persistent within a meta-data definition of the query, indicating that results for the query are persisted to a local database; generating, in a processor, a persistent query entity based on the meta-data definition, wherein the persistent query entity is mapped to a persistent query table in the local database, each row of the persistent query table representing an invocation of the query with a particular set of parameters; uploading the persistent query table to the remote database to create a subscription for the query corresponding to the particular set of parameters; and generating query execution code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer-readable storage medium having instructions stored thereon that, when executed by a computing device, cause a processor to perform a method for creating a data subscription to a remote database, the method comprising:
-
marking a query to be performed on a table located within the remote database as persistent within a meta-data definition of the query, indicating that results for the query are persisted to a local database; generating a persistent query entity based on the meta-data definition, wherein the persistent query entity is mapped to a persistent query table in the local database, each row of the persistent query table representing an invocation of the query with a particular set of parameters; uploading the persistent query table to the remote database to create a subscription for the query corresponding to the particular set of parameters; and generating query execution code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database.
-
-
11. A system capable of creating a data subscription to a remote database, comprising:
-
a memory configured to store; a marking module configured to mark a query to be performed on a table located within the remote database as persistent within a meta-data definition of the query, indicating that results for the query are persisted to a local database; a generating module configured to generate a persistent query entity based on the meta-data definition, wherein the persistent query entity is mapped to a persistent query table in the local database, each row of the persistent query table representing an invocation of the query with a particular set of parameters; an uploading module configured to upload the persistent query table to the remote database to create a subscription for the query corresponding to the particular set of parameters; and a generating module configured to generate query execution code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database; and
one or more processors configured to process the modules.
-
-
12. A computer-implemented method for creating a persistent query, wherein a table in a remote database is represented by a meta-data definition, comprising:
-
identifying, in the definition, a query to be performed on the table, wherein the query has been marked as a subscribed query; defining a persistent query entity for the subscribed query, indicating that results for the subscribed query are persisted to a local database; mapping the persistent query entity to a persistent query table, each row of the persistent query table representing an invocation of the subscribed query with a particular set of parameters; uploading the persistent query table to the remote database to create a subscription for the subscribed query corresponding to the particular set of parameters; and generating query code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A computer-readable storage medium having instructions stored thereon that, when executed by a computing device, cause a processor to perform a method for creating a persistent query, wherein a table in a remote database is represented by a meta-data definition, the method comprising:
-
identifying, in the definition, a query to be performed on the table, wherein the query has been marked as a subscribed query; defining a persistent query entity for the subscribed query, indicating that results for the subscribed query are persisted to a local database; mapping the persistent query entity to a persistent query table, each row of the persistent query table representing an invocation of the subscribed query with a particular set of parameters; uploading the persistent query table to the remote database to create a subscription for the subscribed query corresponding to the particular set of parameters; and generating query code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database.
-
-
26. A system capable of creating a persistent query, wherein a table in a remote database is represented by a meta-data definition, comprising:
-
a memory configured to store; an identifying module configured to identify, in the definition, a query to be performed on the table, wherein the query has been marked as a subscribed query; a defining module configured to define a persistent query entity for the subscribed query, indicating that results for the subscribed query are persisted to a local database; a mapping module configured to map the persistent query entity to a persistent query table, each row of the persistent query table representing an invocation of the subscribed query with a particular set of parameters; an uploading module configured to upload the persistent query table to the remote database to create a subscription for the subscribed query corresponding to the particular set of parameters; and a generating module configured to generate query code to; consult the persistent query table to determine if the result of an instance of the persistent query is contained in the local database, consult the local database if the result of the instance of the persistent query is contained in the local database, and create an entry in the persistent query table if the result of the instance of the persistent query is not contained in the local database; and one or more processors configured to process the modules.
-
Specification