Interface BulkFetchHandler
-
- All Known Implementing Classes:
BulkFetchExistsHandler,BulkFetchJoinHandler
public interface BulkFetchHandlerInterface for a handler for "bulk fetch" of a multi-valued field from a query.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static voidapplyParametersToStatement(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.IteratorStatementgetStatementToBulkFetchField(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).
-
-
-
Method Detail
-
getStatementToBulkFetchField
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).- Parameters:
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 generation- Returns:
- The statement to use for bulk fetching, together with mappings for extracting the results of the elements
-
applyParametersToStatement
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. Takes care of applying parameters across any UNIONs of elements.- Parameters:
ec- ExecutionContextps- PreparedStatementdatastoreCompilation- The datastore compilation for the query itselfsqlStmt- The bulk-fetch iterator statementparameters- The map of parameters passed in to the query
-
-