public class CapturingQueryMaker extends Object implements QueryMaker
Modifier and Type | Class and Description |
---|---|
static class |
CapturingQueryMaker.Captured |
QueryMaker.Query, QueryMaker.QueryCannotMatchException, QueryMaker.QueryMakerException
Constructor and Description |
---|
CapturingQueryMaker() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String queryType)
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.
|
public static final String TYPE
public String getName()
QueryMaker
getName
in interface QueryMaker
public boolean accepts(String queryType)
QueryMaker
Called first.
accepts
in interface QueryMaker
queryType
- the querytrue
if the query is acceptedpublic QueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params) throws StorageException
QueryMaker
buildQuery
in interface QueryMaker
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.