|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Extension of the Query interface that adds some
Kodo-specific methods.
| Field Summary | |
static int |
FLUSH_FALSE
Constant denoting that queries should never flush data to the database automatically before executing a query, but should instead execute queries in-memory if necessary. |
static int |
FLUSH_TRUE
Constant denoting that queries should flush data to the database automatically whenever Kodo determines that relevant modifications have been made and IgnoreCache is false. |
static int |
FLUSH_WITH_CONNECTION
Constant denoting that queries should flush data to the database automatically when Kodo determines that relevant modifications have been made and the current PersistenceManager already has a dedicated connection. |
| Method Summary | |
ClassMetaData[] |
getAccessPathMetaDatas()
Return an array of ClassMetaData for all
classes involved in this query, or null if the access
path for this query cannot be computed. |
boolean[] |
getAscending()
For each expression returned by getOrdering(), return whether
that expression is ascending. |
Class |
getCandidateClass()
Return the class of the objects that this query will return, or null if this information is not available /
not relevant. |
Collection |
getCandidateCollection()
Return the candidate collection, or null if an
extent was specified instead of a collection. |
KodoExtent |
getCandidateExtent()
Return the candidate extent, or null if a
collection was specified instead of an extent. |
FetchConfiguration |
getFetchConfiguration()
Return the (mutable) fetch configuration for this query. |
String |
getFilter()
Return the filter that this query has been configured with. |
String[] |
getOrdering()
Return the ordering expressions that this query was configured with. |
String[][] |
getParameterDeclarations()
Return a two-dimensional String array containing
the parameter declarations for this query. |
String[] |
getResult()
Return the result expressions set for this query. |
String[] |
getResultAliases()
For each expression from getResult(), return the alias set for
that expression. |
Class |
getResultClass()
Returns the result class that has been set through setResultClass(java.lang.Class), or null if none. |
void |
registerListener(AggregateListener listener)
Register a filter listener for the query. |
void |
registerListener(FilterListener listener)
Register a filter listener for the query. |
void |
setResult(String data)
JDO 2.0 Preview. |
void |
setResultClass(Class cls)
JDO 2.0 Preview. |
void |
setUnique(boolean unique)
JDO 2.0 Preview. |
| Methods inherited from interface javax.jdo.Query |
close, closeAll, compile, declareImports, declareParameters, declareVariables, execute, execute, execute, execute, executeWithArray, executeWithMap, getIgnoreCache, getPersistenceManager, setCandidates, setCandidates, setClass, setFilter, setIgnoreCache, setOrdering |
| Field Detail |
public static final int FLUSH_TRUE
false. See JDOConfiguration.getFlushBeforeQueries()
for more info.public static final int FLUSH_FALSE
JDOConfiguration.getFlushBeforeQueries() for more info.public static final int FLUSH_WITH_CONNECTION
JDOConfiguration.getFlushBeforeQueries() for more info.| Method Detail |
public FetchConfiguration getFetchConfiguration()
public void registerListener(FilterListener listener)
public void registerListener(AggregateListener listener)
public KodoExtent getCandidateExtent()
null if a
collection was specified instead of an extent.public Collection getCandidateCollection()
null if an
extent was specified instead of a collection.public Class getCandidateClass()
null if this information is not available /
not relevant.public String getFilter()
public String[] getOrdering()
public boolean[] getAscending()
getOrdering(), return whether
that expression is ascending.public String[][] getParameterDeclarations()
String array containing
the parameter declarations for this query. For example, a
query that has two int parameters called
foo and bar would return
{ { "int", "foo" }, { "int", "bar" } }. Returns
null if there are no parameter declarations.public String[] getResult()
public String[] getResultAliases()
getResult(), return the alias set for
that expression.public ClassMetaData[] getAccessPathMetaDatas()
ClassMetaData for all
classes involved in this query, or null if the access
path for this query cannot be computed.public void setUnique(boolean unique)
public void setResult(String data)
null, this
query will return a list of the query's candidate class. Otherwise,
this query will return aggregate function results and / or
individual field values (projections).data - a comma-delimited list of fields, functions on fields,
or aggregate functions to return from this querypublic void setResultClass(Class cls)
Query.execute() or one of its siblings. The
behavior of this method depends the nature of the query being executed.
In particular, if used in conjunction with setResult(java.lang.String),
the argument to this method should be
Object[].class, a class with bean-like setters
for each of the items listed in the result specification, or
a class with a method called put with two
Object arguments.public Class getResultClass()
setResultClass(java.lang.Class), or null if none.
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||