Package org.nuxeo.ecm.core.storage.sql
Class CapturingQueryMaker
java.lang.Object
org.nuxeo.ecm.core.storage.sql.CapturingQueryMaker
- All Implemented Interfaces:
QueryMaker
A dummy QueryMaker usable to capture the low level sqlInfo, model and session from a high-level session, in order to
further test QueryMakers.
- Author:
- Florent Guillaume
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.nuxeo.ecm.core.storage.sql.jdbc.QueryMaker
QueryMaker.Query, QueryMaker.QueryCannotMatchException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this query maker accepts a given query.buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params) Builds the query.getName()Gets the name for this query maker.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
CapturingQueryMaker
public CapturingQueryMaker()
-
-
Method Details
-
getName
Description copied from interface:QueryMakerGets the name for this query maker.- Specified by:
getNamein interfaceQueryMaker
-
accepts
Description copied from interface:QueryMakerChecks if this query maker accepts a given query.Called first.
- Specified by:
acceptsin interfaceQueryMaker- Parameters:
queryType- the query- Returns:
trueif the query is accepted
-
buildQuery
public QueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params) Description copied from interface:QueryMakerBuilds the query.- Specified by:
buildQueryin interfaceQueryMaker- Parameters:
sqlInfo- the sql infomodel- the modelpathResolver- the path resolverquery- the queryqueryFilter- the query filterparams- additional parameters, maker-specific
-