org.datanucleus.query.compiler
Class JDOQLCompiler

java.lang.Object
  extended by org.datanucleus.query.compiler.JavaQueryCompiler
      extended by org.datanucleus.query.compiler.JDOQLCompiler
All Implemented Interfaces:
SymbolResolver

public class JDOQLCompiler
extends JavaQueryCompiler
implements SymbolResolver

Implementation of a compiler for JDOQL (JSR0012, JSR0243).


Field Summary
 
Fields inherited from class org.datanucleus.query.compiler.JavaQueryCompiler
candidateAlias, candidateClass, candidates, clr, filter, from, grouping, having, imports, metaDataManager, ordering, parameters, parser, result, symtbl, variables
 
Constructor Summary
JDOQLCompiler(MetaDataManager metaDataManager, ClassLoaderResolver clr, java.lang.String from, java.lang.Class candidateClass, java.util.Collection candidates, java.lang.String filter, Imports imports, java.lang.String ordering, java.lang.String result, java.lang.String grouping, java.lang.String having, java.lang.String params, java.lang.String variables)
           
 
Method Summary
 QueryCompilation compile(java.util.Map parameters)
          Method to compile the query, and return the compiled results.
 
Methods inherited from class org.datanucleus.query.compiler.JavaQueryCompiler
compileCandidatesParametersVariables, compileFilter, compileFrom, compileGrouping, compileHaving, compileOrdering, compileResult, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.symbol.SymbolResolver
getType
 

Constructor Detail

JDOQLCompiler

public JDOQLCompiler(MetaDataManager metaDataManager,
                     ClassLoaderResolver clr,
                     java.lang.String from,
                     java.lang.Class candidateClass,
                     java.util.Collection candidates,
                     java.lang.String filter,
                     Imports imports,
                     java.lang.String ordering,
                     java.lang.String result,
                     java.lang.String grouping,
                     java.lang.String having,
                     java.lang.String params,
                     java.lang.String variables)
Method Detail

compile

public QueryCompilation compile(java.util.Map parameters)
Method to compile the query, and return the compiled results.

Specified by:
compile in class JavaQueryCompiler
Parameters:
parameters - the parameter map of values keyed by param name
Returns:
The compiled query


Copyright © 2009. All Rights Reserved.