org.apache.jdo.impl.jdoql.jdoqlc
Class JDOQLC

java.lang.Object
  extended byorg.apache.jdo.impl.jdoql.jdoqlc.JDOQLC

public class JDOQLC
extends java.lang.Object

This class controls the JDOQL compiler passes.

Author:
Michael Bouschen

Field Summary
protected  java.lang.Class candidateClass
          The candidate class.
protected  ErrorMsg errorMsg
          Error message helper.
protected  JDOQLAST filterAST
          The AST representing the filter expression.
protected  JDOQLAST importsAST
          The AST representing the import declarations.
protected  JDOQLAST orderingAST
          The AST representing the ordering specification.
protected  JDOQLAST paramsAST
          The AST representing the parameter declarations.
protected  org.apache.jdo.pm.PersistenceManagerInternal pm
          The persistence manager of the query instance.
protected  JDOQLAST queryTree
          The complete query tree.
protected  TypeSupport typeSupport
          Type support.
protected  JDOQLAST varsAST
          The AST representing the variable declarations.
 
Constructor Summary
JDOQLC(org.apache.jdo.pm.PersistenceManagerInternal pm)
           
 
Method Summary
 void declareImports(java.lang.String imports)
           
 void declareParameters(java.lang.String parameters)
           
 void declareVariables(java.lang.String variables)
           
 JDOQLAST optimize(JDOQLAST tree)
           
 JDOQLAST optimize(JDOQLAST tree, ParameterTable paramtab)
           
 JDOQLAST semanticCheck(ParameterTable paramtab, VariableTable vartab)
           
 void setClass(java.lang.Class candidateClass)
           
 void setFilter(java.lang.String filter)
           
 void setOrdering(java.lang.String ordering)
           
 void setQueryTree(JDOQLAST queryTree)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pm

protected org.apache.jdo.pm.PersistenceManagerInternal pm
The persistence manager of the query instance.


typeSupport

protected TypeSupport typeSupport
Type support.


errorMsg

protected ErrorMsg errorMsg
Error message helper.


candidateClass

protected java.lang.Class candidateClass
The candidate class.


filterAST

protected JDOQLAST filterAST
The AST representing the filter expression.


importsAST

protected JDOQLAST importsAST
The AST representing the import declarations.


paramsAST

protected JDOQLAST paramsAST
The AST representing the parameter declarations.


varsAST

protected JDOQLAST varsAST
The AST representing the variable declarations.


orderingAST

protected JDOQLAST orderingAST
The AST representing the ordering specification.


queryTree

protected JDOQLAST queryTree
The complete query tree.

Constructor Detail

JDOQLC

public JDOQLC(org.apache.jdo.pm.PersistenceManagerInternal pm)
Method Detail

setClass

public void setClass(java.lang.Class candidateClass)

declareImports

public void declareImports(java.lang.String imports)

declareParameters

public void declareParameters(java.lang.String parameters)

declareVariables

public void declareVariables(java.lang.String variables)

setOrdering

public void setOrdering(java.lang.String ordering)

setFilter

public void setFilter(java.lang.String filter)

setQueryTree

public void setQueryTree(JDOQLAST queryTree)

semanticCheck

public JDOQLAST semanticCheck(ParameterTable paramtab,
                              VariableTable vartab)

optimize

public JDOQLAST optimize(JDOQLAST tree)

optimize

public JDOQLAST optimize(JDOQLAST tree,
                         ParameterTable paramtab)


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.