org.xorm.query
Class DataQuery

java.lang.Object
  |
  +--org.xorm.query.AbstractQueryLanguage
        |
        +--org.xorm.query.DataQuery
All Implemented Interfaces:
Cloneable, QueryLanguage

public class DataQuery
extends AbstractQueryLanguage

Implementation of JDO query interface for native queries (using DataQuery.LANGUAGE).


Field Summary
 
Fields inherited from class org.xorm.query.AbstractQueryLanguage
clazz, paramNameToType, varNameToType
 
Fields inherited from interface org.xorm.query.QueryLanguage
LANGUAGE
 
Constructor Summary
DataQuery(Class candidateClass, Condition condition)
           
 
Method Summary
 void compile()
          A hint that the implementation should undertake the work of generating the Expression object now for future use.
 Condition getCondition()
           
 Expression getExpression()
          Returns the query expression generated by this object.
 void setFilter(Object filter)
           
 
Methods inherited from class org.xorm.query.AbstractQueryLanguage
addOrdering, declareParameter, declareVariable, getCandidateClass, getOrdering, getParameterNames, getParameterType, getVariableNames, getVariableType, setClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataQuery

public DataQuery(Class candidateClass,
                 Condition condition)
Method Detail

compile

public void compile()
Description copied from interface: QueryLanguage
A hint that the implementation should undertake the work of generating the Expression object now for future use.

Specified by:
compile in interface QueryLanguage
Specified by:
compile in class AbstractQueryLanguage

getCondition

public Condition getCondition()

getExpression

public Expression getExpression()
Description copied from interface: QueryLanguage
Returns the query expression generated by this object. This method may return null if compile() has not been called.

Specified by:
getExpression in interface QueryLanguage
Specified by:
getExpression in class AbstractQueryLanguage

setFilter

public void setFilter(Object filter)
Specified by:
setFilter in class AbstractQueryLanguage


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/query/DataQuery.html,v 1.8 2004/05/30 08:55:08 wbiggs Exp $