public interface QueryMaker
Must have a zero-arg constructor.
| Modifier and Type | Interface and Description |
|---|---|
static class |
QueryMaker.Query
A SQL query that can be executed by the backend.
|
static class |
QueryMaker.QueryCannotMatchException |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String query)
Checks if this query maker accepts a given query.
|
QueryMaker.Query |
buildQuery(SQLInfo sqlInfo,
Model model,
Session.PathResolver pathResolver,
String query,
QueryFilter queryFilter,
Object... params)
Builds the query.
|
String |
getName()
Gets the name for this query maker.
|
boolean accepts(String query)
Called first.
query - the querytrue if the query is acceptedQueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params)
sqlInfo - the sql infomodel - the modelpathResolver - the path resolverquery - the queryqueryFilter - the query filterparams - additional parameters, maker-specificCopyright © 2018 Nuxeo. All rights reserved.