public class JDOQLCompiler extends JavaQueryCompiler
candidateAlias, candidateAliasOrig, candidateClass, candidates, caseSensitiveAliases, clr, filter, from, grouping, having, imports, metaDataManager, options, ordering, parameters, parameterSubstitutionNumber, parameterSubtitutionMap, parentCompiler, parser, queryMethodAliasByPrefix, result, symtbl, update, variables| Constructor and Description |
|---|
JDOQLCompiler(MetaDataManager metaDataManager,
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, swapSubqueryParameterspublic JDOQLCompiler(MetaDataManager metaDataManager, 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 JavaQueryCompilerparameters - the parameter map of values keyed by param namesubqueryMap - Map of subquery variables, keyed by the subquery namepublic Expression[] compileUpdate()
compileUpdate in class JavaQueryCompilerpublic boolean supportsImplicitVariables()
SymbolResolverpublic boolean caseSensitiveSymbolNames()
SymbolResolverpublic String getLanguage()
getLanguage in class JavaQueryCompilerprotected boolean isKeyword(String name)
isKeyword in class JavaQueryCompilername - The nameCopyright © 2017. All rights reserved.