|
|||||||||||
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 | |
QueryStatement |
newQueryStatement()
Returns a prototypical query statement over the underlying collection. |
QueryStatement |
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(QueryStatement stmt)
Returns a suitable query result factory for results produced by the specified query. |
Method Detail |
public QueryStatement 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 QueryStatement newQueryStatement(java.lang.Class candidateClass)
JDOUserException
- If candidateClass is not the same as or a subclass of
the defined element type for this collection.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryStatement stmt)
The stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |