org.datanucleus.store.rdbms.query.package.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datanucleus-rdbms Show documentation
Show all versions of datanucleus-rdbms Show documentation
Plugin for DataNucleus providing persistence to RDBMS datastores.
The newest version!
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 using QueryToSQLMapper
.
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 of
PersistentClassROF
, ResultClassROF
or 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.