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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractQueryCompiler(org.slf4j.Logger log, DataModel dataModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompileExceptioncompileException(ProblemBuffer problemBuffer, String queryString) protected FuncallNodefindFuncall(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 FuncallNodeparseQueryString(String queryString, ProblemBuffer problemBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:QueryCompilerParses the query string and returns the unmodified AST.- Specified by:
parseQueryin interfaceQueryCompiler- Throws:
PersistException
-
parseQueryString
protected FuncallNode parseQueryString(String queryString, ProblemBuffer problemBuffer) throws PersistException - Throws:
PersistException
-
compileException
-
findTargetEntity
- Specified by:
findTargetEntityin interfaceQueryCompiler
-
findOrder
- Specified by:
findOrderin interfaceQueryCompiler
-
findWhere
- Specified by:
findWherein interfaceQueryCompiler
-
findFuncall
-