Interface QueryMaker
-
- All Known Implementing Classes:
CapturingQueryMaker,CMISQLQueryMaker,NXQLQueryMaker,TagQueryMaker
public interface QueryMaker
A Query Maker, that can transform a query string into a SQL statement.Must have a zero-arg constructor.
- Author:
- Florent Guillaume
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classQueryMaker.QueryA SQL query that can be executed by the backend.static classQueryMaker.QueryCannotMatchException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccepts(String query)Checks if this query maker accepts a given query.QueryMaker.QuerybuildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params)Builds the query.StringgetName()Gets the name for this query maker.
-
-
-
Method Detail
-
accepts
boolean accepts(String query)
Checks if this query maker accepts a given query.Called first.
- Parameters:
query- the query- Returns:
trueif the query is accepted
-
buildQuery
QueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params)
Builds the query.- Parameters:
sqlInfo- the sql infomodel- the modelpathResolver- the path resolverquery- the queryqueryFilter- the query filterparams- additional parameters, maker-specific
-
-