Methods and systems for coupling client-side and server-side persistence frameworks
First Claim
Patent Images
1. A method, comprisingdetecting, by a client application executed using a processor, a request for object data to a remote data provider;
- determining, by the client application, that persistence metadata related to the object data is locally available, wherein the persistence metadata describes how the object data is stored using one or more database structures;
determining, by the client application, version information of the persistence metadata;
transmitting, by the client application processor, the request for the object data to a remote data provider, wherein the request comprises the version information of the persistence metadata related to the object data;
receiving, by the client application, the object data from the remote data provider in response to the request for the object data;
receiving updated persistence metadata associated with the object from the data source in response to the request for the object data identifying that the version information is outdated; and
storing the object data in a local database using the updated persistence metadata, wherein using the updated persistence metadata comprises storing the object data in an updated storage scheme described by updated persistence metadata that is different than an outdated storage scheme described by the persistence metadata.
2 Assignments
0 Petitions
Accused Products
Abstract
A client application can be configured to use a client-side persistence framework to maintain a local database for use in storing data even when a data provider is not available. In accordance with the present subject matter, the client application can be configured to obtain and rely on server-side persistence metadata rather than requiring the persistence metadata to be specifically included in the code for the client-side application. In some instances, this can simplify the development process and/or allow for more robust client-side applications.
-
Citations
18 Claims
-
1. A method, comprising
detecting, by a client application executed using a processor, a request for object data to a remote data provider; -
determining, by the client application, that persistence metadata related to the object data is locally available, wherein the persistence metadata describes how the object data is stored using one or more database structures;
determining, by the client application, version information of the persistence metadata;transmitting, by the client application processor, the request for the object data to a remote data provider, wherein the request comprises the version information of the persistence metadata related to the object data; receiving, by the client application, the object data from the remote data provider in response to the request for the object data; receiving updated persistence metadata associated with the object from the data source in response to the request for the object data identifying that the version information is outdated; and storing the object data in a local database using the updated persistence metadata, wherein using the updated persistence metadata comprises storing the object data in an updated storage scheme described by updated persistence metadata that is different than an outdated storage scheme described by the persistence metadata. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computing system comprising a processor with access to a tangible computer readable medium embodying program components, the program components comprising:
-
an application that configures the computing system to request data representing an object from a data provider and store the data representing the object in memory, the object comprising an instance of an class, wherein the class defines a property and the object is represented in memory by a value for the property; a persistence framework that configures the computing system to utilize persistence metadata to maintain a local database, the local database including an entry corresponding to the object, and the persistence metadata is related to the data representing the object, wherein the persistence metadata describes how the object data is stored using one or more database structures; a metadata exchange module that configures the computing system to; obtain updated persistence metadata from the data provider, wherein the metadata exchange module further configures the computing system to detect the request for data representing the object and obtain the updated persistence metadata from the data provider based on a locally available persistence metadata is outdated; and update the local database if the persistence metadata available from the data provider represents an updated version of the persistence metadata, wherein updating the local database comprise storing the object in an updated storage scheme described by updated persistence metadata that is different than an outdated storage scheme described by the persistence metadata that is outdated. - View Dependent Claims (11, 12, 13)
-
-
14. A computer program product comprising a non-transitory computer-readable medium embodying program code executable by a computing system, the program code comprising:
-
program code for detecting a request for object data; program code for determining that persistence metadata related to the object data is locally available, wherein the persistence metadata describes how the object data is stored using one or more database structures; program code for determining version information of persistence metadata related to the object data; program code for transmitting the request for the object data to a remote data provider, wherein the request comprises the version information; program code for receiving object data from the remote data provider in response to the request for the object data; program code for receiving updated persistence metadata associated with the object from the data source in response to the request for the object data identifying that the version information is outdated; and program code for storing the object data in a local database using the updated persistence metadata, wherein using the updated persistence metadata comprises storing the object data in an updated storage scheme described by updated persistence metadata that is different than an outdated storage scheme described by the persistence metadata. - View Dependent Claims (15, 16, 17, 18)
-
Specification