|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.store.ClassViewExtent
An Extent of all persistent objects backed by a view.
Extent| Constructor Summary | |
ClassViewExtent(PersistenceManager pm,
ClassView view,
boolean subclasses)
|
|
| Method Summary | |
void |
close(java.util.Iterator it)
Close an Iterator associated with this Extent instance. |
void |
closeAll()
Close all Iterators associated with this Extent instance. |
java.lang.Class |
getCandidateClass()
An Extent contains all instances of a particular Class in the data store; this method returns the Class of the instances |
javax.jdo.PersistenceManager |
getPersistenceManager()
An Extent is managed by a PersistenceManager; this method gives access to the owning PersistenceManager. |
boolean |
hasSubclasses()
Returns whether this Extent was defined to contain subclasses. |
java.util.Iterator |
iterator()
Returns an iterator over all the instances in the Extent. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClassViewExtent(PersistenceManager pm,
ClassView view,
boolean subclasses)
| Method Detail |
public java.util.Iterator iterator()
iterator in interface javax.jdo.Extentpublic boolean hasSubclasses()
hasSubclasses in interface javax.jdo.Extentpublic java.lang.Class getCandidateClass()
getCandidateClass in interface javax.jdo.Extentpublic javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager in interface javax.jdo.Extentpublic void close(java.util.Iterator it)
close in interface javax.jdo.Extentit - an iterator obtained by the method iterator() on this Extent
instance.public void closeAll()
closeAll in interface javax.jdo.Extentpublic QueryStatement newQueryStatement()
QueryableThe 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.
newQueryStatement in interface Queryablepublic QueryStatement newQueryStatement(java.lang.Class candidateClass)
Queryable
newQueryStatement in interface QueryableQueryable.newQueryStatement()public Query.ResultObjectFactory newResultObjectFactory(QueryStatement stmt)
QueryableThe stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory in interface Queryablepublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||