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 class
QueryMaker.Query
A SQL query that can be executed by the backend.static class
QueryMaker.QueryCannotMatchException
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
accepts
boolean accepts(String query)
Checks if this query maker accepts a given query.Called first.
- Parameters:
query
- the query- Returns:
true
if 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
-
-