On-device database service for mobile device
AssigneeOracle International Corporation
InventorHinkmond Wong
Life of this patent
Estimating the term…
Abstract
A database system of a mobile device that includes an on-device database service is provided. The on-device database service accepts a connection request from an application, and receives a database command from the application. The on-device database service translates the database command into a structured query language command, and transmits the structured query language command to an embedded database. After a database operation is performed by the embedded database, the on-device database service receives a result of the structured query language command that is transmitted from the embedded database, and the on-device database service transmits the result to the application.
Claims19
A non-transitory computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to process database commands, the processing comprising:
- listening for a connection request to an on-device database service executed on a mobile device from an application using a socket, wherein the on-device database service comprises a service that is executed in a background of the mobile device;
- accepting the connection request from the application using the socket;
- receiving a database command from the application using the socket;
- loading a database library from an embedded database, wherein the embedded database comprises the database library and one or more database files;
- linking the database library with the on-device database service;
- translating the database command into a structured query language command using the linked database library, wherein the structured query language format is in an embedded database format;
- transmitting the structured query language command to an embedded database;
- receiving a result of the structured query language command that is transmitted from the embedded database;
- transmitting the result to the application using the socket;
- wherein the on-device database service accepts a plurality of connection requests from a plurality of applications, transmits a plurality of structured query language commands to the embedded database concurrently, and transmits a plurality of results to the plurality of applications concurrently;
- and
- transmitting a sync event to a mobile sync server, wherein the sync event comprises an event notification that notifies the mobile sync server to begin a synchronization process, wherein the on-device database service transmits the sync event.
A computer-implemented method for processing database commands, the method comprising:
- listening for a connection request to an on-device database service executed on a mobile device from an application using a socket, wherein the on-device database service comprises a service that is executed in a background of the mobile device;
- accepting the connection request from the application using the socket;
- receiving a database command from the application using the socket;
- loading a database library from an embedded database, wherein the embedded database comprises the database library and one or more database files;
- linking the database library with the on-device database service;
- translating the database command into a structured query language command using the linked database library, wherein the structured query language format is in an embedded database format;
- transmitting the structured query language command to an embedded database;
- receiving a result of the structured query language command that is transmitted from the embedded database;
- transmitting the result to the application using the socket;
- wherein the on-device database service accepts a plurality of connection requests from a plurality of applications, transmits a plurality of structured query language commands to the embedded database concurrently, and transmits a plurality of results to the plurality of applications concurrently;
- and
- transmitting a sync event to a mobile sync server, wherein the sync event comprises an event notification that notifies the mobile sync server to begin a synchronization process, wherein the on-device database service transmits the sync event.
A database system for a mobile device, the database system comprising:
- a memory configured to store instructions for an on-device database service;
- a processor configured to execute the instructions stored on the memory;
- and
- an embedded database configured to store data;
- wherein the on-device database service comprises a service that is executed in a background of the mobile device, and further configured to:
- listen for a connection request to the on-device database service from an application using a socket;
- accept the connection request from the application using the socket;
- receive a database command from the application using the socket;
- load a database library from an embedded database, wherein the embedded database comprises the database library and one or more database files;
- link the database library with the on-device database service;
- translate the database command into a structured query language command using the linked database library, wherein the structured query language format is in an embedded database format;
- transmit the structured query language command to an embedded database;
- receive a result of the structured query language command that is transmitted from the embedded database;
- transmit the result to the application using the socket;
- wherein the on-device database service accepts a plurality of connection requests from a plurality of applications, transmits a plurality of structured query language commands to the embedded database concurrently, and transmits a plurality of results to the plurality of applications concurrently;
- and
- transmit a sync event to a mobile sync server, wherein the sync event comprises an event notification that notifies the mobile sync server to begin a synchronization process, wherein the on-device database service transmits the sync event.
Dependencies are inferred from the claim text.