Code completion for object relational mapping query language (OQL) queries
First Claim
Patent Images
1. A computer-implemented method, comprising:
- performing error checking on a first query string to query an underlying database when receiving the first query string via a first querying-related window in a graphical user interface (GUI), wherein the first query string is written in a customized structured query language (SQL) and is incompatible with the underlying database;
translating, by a processing device, the first query string from customized SQL to a second query string that is a SQL statement written in standard SQL, the second query string being compatible with the underlying database;
displaying in a second querying-related window in the same GUI the second query string that is compatible with the underlying database, wherein executing the second query string queries the underlying database to create query results; and
displaying in a third querying-related window in the same GUI a result of executing the second query string against the underlying database,wherein the first querying-related window, the second querying-related window, and the third querying-related window are displayed at a same time within a single instance of the same GUI comprising a plurality of querying-related windows.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for developing database applications are described herein. According to one embodiment, an object-relational mapping (ORM) query language (OQL) statement is received via a first window which is entered from a user for querying an underlying database, where the OQL statement is written in a customized query language that is incompatible with the underlying database. In response, a SQL statement compatible with the underlying database is dynamically displayed in a second window, where the SQL statement is automatically translated from the OQL statement displayed in the first window. Other methods and apparatuses are also described.
49 Citations
22 Claims
-
1. A computer-implemented method, comprising:
-
performing error checking on a first query string to query an underlying database when receiving the first query string via a first querying-related window in a graphical user interface (GUI), wherein the first query string is written in a customized structured query language (SQL) and is incompatible with the underlying database; translating, by a processing device, the first query string from customized SQL to a second query string that is a SQL statement written in standard SQL, the second query string being compatible with the underlying database; displaying in a second querying-related window in the same GUI the second query string that is compatible with the underlying database, wherein executing the second query string queries the underlying database to create query results; and displaying in a third querying-related window in the same GUI a result of executing the second query string against the underlying database, wherein the first querying-related window, the second querying-related window, and the third querying-related window are displayed at a same time within a single instance of the same GUI comprising a plurality of querying-related windows. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory machine-readable medium having instructions stored therein, which when executed by a processing device, cause the processing device to perform a method, the method comprising:
-
performing, by the processing device, error checking on a first query string to query an underlying database when receiving the first query string via a first querying-related window in a graphical user interface (GUI), wherein the first query string is written in a customized structured query language (SQL) and is incompatible with the underlying database; translating, by the processing device, the first query string from customized SQL to a second query string that is a SQL statement written in standard SQL, the second query string being compatible with the underlying database; displaying in a second querying-related window in the same GUI the second query string that is compatible with the underlying database, wherein executing the second query string queries the underlying database to create query results; and displaying in a third querying-related window in the same GUI a result of executing the second query string against the underlying database, wherein the first querying-related window, the second querying-related window, and the third querying-related window are displayed at a same time within a single instance of the same GUI comprising a plurality of querying-related windows. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer-implemented method, comprising:
-
receiving a selection of a query string via a first querying-related window in a graphical user interface (GUI) of an application, the first querying-related window for editing cross-platform programming language compatible query strings, wherein the selected query string is incompatible with a cross-platform programming language; in response to receiving a selection of an editor, replicating, by a processing device, the selected query string into a second querying-related window for editing customized query strings using the selected editor and to enable a user to execute the customized query strings within the second querying-related window; translating a first query string received via the first querying-related window to a second query string that is compatible with an underlying database; displaying in a third querying-related window the second query string that is compatible with the underlying database; and displaying in a fourth querying-related window a result of executing the second query string against the underlying database, wherein the first querying-related window, the second querying-related window, the third querying-related window and the fourth querying-related window are displayed at a same time within a single instance of the GUI, the GUI comprising a plurality of querying-related windows. - View Dependent Claims (16, 17, 18, 19, 20)
-
-
21. A system comprising:
-
a processing device; and a memory coupled to the processing device and storing instructions that, when executed by the processing device, cause the processing device to; perform error checking on a first query string to query an underlying database when receiving the first query string via a first querying-related window in a graphical user interface (GUI), wherein the first query string is written in a customized structured query language (SQL) and is incompatible with the underlying database, translate the first query string from customized SQL to a second query string that is a SQL statement written in standard SQL, wherein the second query string is compatible with the underlying database, display in a second querying-related window in the same GUI the second query string that is compatible with the underlying database, wherein executing the second query string queries the underlying database to create query results, and display in a third querying-related window in the same GUI a result of executing the second query string against the underlying database, wherein the first querying-related window, the second querying-related window, and the third querying-related window are displayed at a same time within a single instance of the same GUI comprising a plurality of querying-related windows. - View Dependent Claims (22)
-
Specification