|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Indicates an object that can be queried, such as an Extent or persistent collection.
QueryStatement
Method Summary | |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
QueryExpression |
newQueryStatement()
Returns a prototypical query statement over the underlying collection. |
QueryExpression |
newQueryStatement(java.lang.Class candidateClass)
Returns a prototypical query statement over the underlying collection, pre-filtered to include only objects of the specified class. |
Query.ResultObjectFactory |
newResultObjectFactory(QueryExpression stmt,
boolean ignoreCache,
java.lang.Class resultClass,
boolean useFetchPlan)
Returns a suitable query result factory for results produced by the specified query. |
Method Detail |
public QueryExpression newQueryStatement()
The returned query statement selects all applicable rows from the relevant base table(s) and the column that represents the element or element ID. The statement can then be modified to join additional tables, select more columns, add WHERE conditions, etc.
public QueryExpression newQueryStatement(java.lang.Class candidateClass)
candidateClass
-
javax.jdo.JDOUserException
- If candidateClass is not the same as or a subclass of
the defined element type for this collection.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryExpression stmt, boolean ignoreCache, java.lang.Class resultClass, boolean useFetchPlan)
The stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
stmt
- The query statementignoreCache
- Whether to ignore the cacheresultClass
- Create objects of a particular typeuseFetchPlan
- whether to use the fetch plan to retrieve fields in the same query
public boolean isEmpty()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |