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
Modifier and TypeInterfaceDescriptionstatic class
A SQL query that can be executed by the backend.static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks 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.
-
Method Details
-
getName
String getName()Gets the name for this query maker. -
accepts
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
-