Package org.datanucleus.store.rdbms.query
package org.datanucleus.store.rdbms.query
Package providing the querying mechanism for DataNucleus for RDBMS datastores.
Query Generation
Queries are supported on RDBMS datastore using JDOQL, JPQL, SQL, or alternatively StoredProcedures. JDOQL queries are converted into SQL using a query compilation process, firstly compiling generically, and then converting the generic compilation into SQL usingQueryToSQLMapper. JPQL queries are converted into SQL using a query compilation process, firstly compiling generically, and then converting the generic compilation into SQL using
QueryToSQLMapper.
Query Result Processing
A query is executed and returns a JDBC ResultSet. The ResultSet is then converted into the requisite result format using either ofPersistentClassROF,
ResultClassROFor
ResultMetaDataROF. These "result object factories" convert each row of the ResultSet into the required object(s). Where part of the result is a persistable object, it makes use of ResultSetGetter to populate the fields of the persistable object.
-
ClassDescriptionAbstract representation of a QueryResult for RDBMS queries.AbstractROF<T>Abstract result object factory, taking the ExecutionContext being operated in, and the ResultSet that will be processed.Bulk-Fetch handler to generate the necessary statement for multi-valued field bulk-fetch using EXISTS subquery semantics.Interface for a handler for "bulk fetch" of a multi-valued field from a query.Helper class to generate the necessary statement for multi-valued field bulk-fetch, using JOIN semantics.Lazy collection results from a Query with the ResultSet in a forward direction.RDBMS representation of a JDOQL query for use by DataNucleus.RDBMS representation of a JPQL query for use by DataNucleus.Result-object factory that takes a JDBC ResultSet, a results mapping, and creates a persistable object instance for each row in the ResultSet.Interface for a generator of query statements.Class which maps a compiled (generic) query to an SQL query for RDBMS datastores.Datastore-specific (RDBMS) compilation information for a java query.Utilities for use in queries specific to RDBMS.Take a ResultSet, and for each row retrieves an object of a specified result class type.Invokes a type-specific getter on given ResultSetResultObjectFactory that operates using a QueryResultMetaData and returns objects based on the definition.An object that reads result set rows and returns corresponding object(s) from them.Lazy collection results from a Query with the ResultSet scrollable.A Query using SQL.Definition of statement mapping for a particular class.Representation of a mapping in a statement (such as JDBC), and its mapping to the associated column(s) or parameters that the mapping relates to.Definition of the mapping of a new object definition in the results of a statement.Definition of the mapping of parameters in a datastore statement.Definition of the mapping of result expressions in a datastore statement.Query using a stored procedure.