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 |
static class |
QueryMaker.QueryMakerException |
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.
|
String getName()
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) throws StorageException
sqlInfo
- the sql infomodel
- the modelpathResolver
- the path resolverquery
- the queryqueryFilter
- the query filterparams
- additional parameters, maker-specificStorageException
Copyright © 2013 Nuxeo SA. All Rights Reserved.