org.datanucleus.query.compiler
Class JPQLCompiler

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

public class JPQLCompiler
extends JavaQueryCompiler

Implementation of a compiler for JPQL (JSR0220).


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
JPQLCompiler(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)
           
 
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
 

Constructor Detail

JPQLCompiler

public JPQLCompiler(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)
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.