public interface BulkFetchHandler
Modifier and Type | Method and Description |
---|---|
static void |
applyParametersToStatement(org.datanucleus.ExecutionContext ec,
PreparedStatement ps,
RDBMSQueryCompilation datastoreCompilation,
SQLStatement sqlStmt,
Map parameters)
Convenience method to apply the passed parameters to the provided bulk-fetch statement.
|
IteratorStatement |
getStatementToBulkFetchField(org.datanucleus.metadata.AbstractClassMetaData candidateCmd,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
org.datanucleus.store.query.Query query,
Map parameters,
RDBMSQueryCompilation datastoreCompilation,
Set<String> mapperOptions)
Method to return the bulk-fetch statement (and its associated mappings for extracting the results).
|
IteratorStatement getStatementToBulkFetchField(org.datanucleus.metadata.AbstractClassMetaData candidateCmd, org.datanucleus.metadata.AbstractMemberMetaData mmd, org.datanucleus.store.query.Query query, Map parameters, RDBMSQueryCompilation datastoreCompilation, Set<String> mapperOptions)
candidateCmd
- Metadata for the candidatemmd
- Metadata for the member we are bulk-fetching the value(s) forquery
- The queryparameters
- Parameters for the querydatastoreCompilation
- The datastore compilation of the querymapperOptions
- Any mapper options for query generationstatic void applyParametersToStatement(org.datanucleus.ExecutionContext ec, PreparedStatement ps, RDBMSQueryCompilation datastoreCompilation, SQLStatement sqlStmt, Map parameters)
ec
- ExecutionContextps
- PreparedStatementdatastoreCompilation
- The datastore compilation for the query itselfsqlStmt
- The bulk-fetch iterator statementparameters
- The map of parameters passed in to the queryCopyright © 2019. All rights reserved.