org.jpox.store.query
Class JDOQLQuery.Compiler

java.lang.Object
  extended byorg.jpox.store.query.JDOQLQuery.Compiler
Enclosing class:
JDOQLQuery

public class JDOQLQuery.Compiler
extends java.lang.Object

Inner class to compile the query for execution.


Constructor Summary
JDOQLQuery.Compiler(java.util.Map parameters)
          Constructor
 
Method Summary
 void bindVariable(java.lang.String name, ScalarExpression expr)
          Bind a variable to the query.
 QueryExpression executionCompile()
          Method to execution-compile the query.
 void preCompile()
          Method to provide pre-compilation checks to catch errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLQuery.Compiler

public JDOQLQuery.Compiler(java.util.Map parameters)
Constructor

Parameters:
parameters - map of declared parameters in the query
Method Detail

preCompile

public void preCompile()
Method to provide pre-compilation checks to catch errors. This is performed when calling the JDO Query.compile() method.


executionCompile

public QueryExpression executionCompile()
Method to execution-compile the query. Generates the query and returns it.

Returns:
the execution compiled query

bindVariable

public void bindVariable(java.lang.String name,
                         ScalarExpression expr)
Bind a variable to the query.

Parameters:
name - Name of the variable
expr - The expression


Copyright © -2007 . All Rights Reserved.