public class JDOQLCompiler extends JavaQueryCompiler
candidateAlias, candidateAliasOrig, candidateClass, candidates, caseSensitiveAliases, clr, filter, from, grouping, having, imports, JOIN_INNER, JOIN_INNER_FETCH, JOIN_OUTER, JOIN_OUTER_FETCH, JOIN_OUTER_FETCH_RIGHT, JOIN_OUTER_RIGHT, metaDataManager, options, ordering, parameters, parameterSubstitutionNumber, parameterSubtitutionMap, parentCompiler, parser, queryMgr, result, symtbl, update, variables
Constructor and Description |
---|
JDOQLCompiler(PersistenceNucleusContext nucCtx,
ClassLoaderResolver clr,
String from,
Class candidateClass,
Collection candidates,
String filter,
Imports imports,
String ordering,
String result,
String grouping,
String having,
String params,
String variables,
String update) |
Modifier and Type | Method and Description |
---|---|
boolean |
caseSensitiveSymbolNames()
Whether names of symbols are case-sensitive (e.g JDOQL returns true, but JPQL returns false).
|
QueryCompilation |
compile(Map parameters,
Map subqueryMap)
Method to compile the query, and return the compiled results.
|
Expression[] |
compileUpdate() |
String |
getLanguage()
Accessor for the query language name.
|
protected boolean |
isKeyword(String name)
Method to return if the supplied name is a keyword.
|
void |
setAllowAll(boolean allow)
Mutator for whether we should allow all JDOQL syntax (as opposed to strict JDOQL from the spec).
|
boolean |
supportsImplicitVariables()
Whether we should accept implicit variables in the query.
|
compileCandidatesParametersVariables, compileFilter, compileFrom, compileGrouping, compileHaving, compileOrdering, compileResult, getPrimaryClass, getType, resolveClass, setLinkToParentQuery, setOption, swapCandidateAliasNodeName, swapSubqueryParameters
public JDOQLCompiler(PersistenceNucleusContext nucCtx, ClassLoaderResolver clr, String from, Class candidateClass, Collection candidates, String filter, Imports imports, String ordering, String result, String grouping, String having, String params, String variables, String update)
public void setAllowAll(boolean allow)
allow
- Whether to allowpublic QueryCompilation compile(Map parameters, Map subqueryMap)
compile
in class JavaQueryCompiler
parameters
- the parameter map of values keyed by param namesubqueryMap
- Map of subquery variables, keyed by the subquery namepublic Expression[] compileUpdate()
compileUpdate
in class JavaQueryCompiler
public boolean supportsImplicitVariables()
SymbolResolver
public boolean caseSensitiveSymbolNames()
SymbolResolver
public String getLanguage()
getLanguage
in class JavaQueryCompiler
protected boolean isKeyword(String name)
isKeyword
in class JavaQueryCompiler
name
- The nameCopyright © 2019. All rights reserved.