Interface QueryCompiler
- All Known Implementing Classes:
AbstractQueryCompiler
,CriteriaQueryCompiler
public interface QueryCompiler
Compile a query string to an executable query.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptioncompile
(Context ctx, FuncallNode tree) Compile a query AST to an executable query.Compile a query string to an executable query.findOrder
(FuncallNode tree) findTargetEntity
(FuncallNode tree) findWhere
(FuncallNode tree) parseQuery
(String queryString) Parses the query string and returns the unmodified AST.
-
Method Details
-
compile
Compile a query string to an executable query.- Parameters:
ctx
- The context to compile the query for.queryString
- The query string.- Returns:
- The compiled executable query.
- Throws:
CompileException
- If the query strings contains errors.PersistException
- If an error occurs.
-
compile
Compile a query AST to an executable query.- Parameters:
ctx
- The context to compile the query for.tree
- The root of the tree.- Returns:
- The compiled executable query.
- Throws:
CompileException
- If the query strings contains errors.PersistException
- If an error occurs.
-
parseQuery
Parses the query string and returns the unmodified AST.- Throws:
PersistException
-
findTargetEntity
-
findOrder
-
findWhere
-