Package org.datanucleus.store.query
Class JPQLSingleStringParser.Compiler
java.lang.Object
org.datanucleus.store.query.JPQLSingleStringParser.Compiler
- Enclosing class:
JPQLSingleStringParser
Compiler to process keywords contents.
In the query the keywords often have content values following them that represent the constituent parts of the query.
This takes the keyword and sets the constituent part accordingly.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JPQLSingleStringParser.Parser
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
compile()
private void
private void
private void
private void
private void
private void
private void
private void
private void
private String
processContentWithSubqueries
(String content) Method to extract the required clause, splitting out any subqueries and replacing by variables (adding subqueries to the underlying query), returning the clause to use.
-
Field Details
-
parser
-
subqueryNum
int subqueryNum
-
-
Constructor Details
-
Compiler
Compiler(JPQLSingleStringParser.Parser tokenizer)
-
-
Method Details
-
compile
private void compile() -
compileQuery
private void compileQuery() -
compileResult
private void compileResult() -
compileUpdate
private void compileUpdate() -
compileFrom
private void compileFrom() -
compileWhere
private void compileWhere() -
compileGroup
private void compileGroup() -
compileHaving
private void compileHaving() -
compileOrder
private void compileOrder() -
compileRange
private void compileRange() -
processContentWithSubqueries
Method to extract the required clause, splitting out any subqueries and replacing by variables (adding subqueries to the underlying query), returning the clause to use.- Parameters:
content
- The input string- Returns:
- Content with subqueries substituted
-