Class AbstractQueryCompiler
java.lang.Object
ch.tocco.nice2.persist.core.spi.entity.query.ql.AbstractQueryCompiler
- All Implemented Interfaces:
QueryCompiler
- Direct Known Subclasses:
CriteriaQueryCompiler
Common base class for
QueryCompiler
implementations-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.query.QueryCompiler
QueryCompiler.Keywords, QueryCompiler.Subqueries
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractQueryCompiler
(org.slf4j.Logger log, DataModel dataModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompileException
compileException
(ProblemBuffer problemBuffer, String queryString) protected FuncallNode
findFuncall
(FuncallNode tree, QueryCompiler.Keywords keyword) findOrder
(FuncallNode tree) findTargetEntity
(FuncallNode tree) findWhere
(FuncallNode tree) parseQuery
(String queryString) Parses the query string and returns the unmodified AST.protected FuncallNode
parseQueryString
(String queryString, ProblemBuffer problemBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.query.QueryCompiler
compile, compile
-
Field Details
-
log
protected final org.slf4j.Logger log -
dataModel
-
-
Constructor Details
-
AbstractQueryCompiler
-
-
Method Details
-
parseQuery
Description copied from interface:QueryCompiler
Parses the query string and returns the unmodified AST.- Specified by:
parseQuery
in interfaceQueryCompiler
- Throws:
PersistException
-
parseQueryString
protected FuncallNode parseQueryString(String queryString, ProblemBuffer problemBuffer) throws PersistException - Throws:
PersistException
-
compileException
-
findTargetEntity
- Specified by:
findTargetEntity
in interfaceQueryCompiler
-
findOrder
- Specified by:
findOrder
in interfaceQueryCompiler
-
findWhere
- Specified by:
findWhere
in interfaceQueryCompiler
-
findFuncall
-