|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryMaker
A Query Maker, that can transform a query string into a SQL statement.
Must have a zero-arg constructor.
Nested Class Summary | |
---|---|
static class |
QueryMaker.Query
A SQL query that can be executed by the backend. |
static class |
QueryMaker.QueryCannotMatchException
|
static class |
QueryMaker.QueryMakerException
|
Method Summary | |
---|---|
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 |
---|
String getName()
boolean accepts(String query)
Called first.
query
- the query
true
if the query is acceptedQueryMaker.Query buildQuery(SQLInfo sqlInfo, Model model, Session.PathResolver pathResolver, String query, QueryFilter queryFilter, Object... params) throws StorageException
sqlInfo
- the sql infomodel
- the modelpathResolver
- the path resolverquery
- the queryqueryFilter
- the query filterparams
- additional parameters, maker-specific
StorageException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |