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).
Methods inherited from class org.xorm.query.AbstractQueryLanguage |
addOrdering, declareParameter, declareVariable, getCandidateClass, getOrdering, getParameterNames, getParameterType, getVariableNames, getVariableType, setClass, toString |
DataQuery
public DataQuery(Class candidateClass,
Condition condition)
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 $