|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.triactive.jdo.store.ClassBaseTableExtent
An Extent of all persistent objects backed by a base table.
Extent
Constructor Summary | |
ClassBaseTableExtent(PersistenceManager pm,
ClassBaseTable table,
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 ClassBaseTableExtent(PersistenceManager pm, ClassBaseTable table, boolean subclasses)
Method Detail |
public java.util.Iterator iterator()
iterator
in interface javax.jdo.Extent
public boolean hasSubclasses()
hasSubclasses
in interface javax.jdo.Extent
public java.lang.Class getCandidateClass()
getCandidateClass
in interface javax.jdo.Extent
public javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager
in interface javax.jdo.Extent
public void close(java.util.Iterator it)
close
in interface javax.jdo.Extent
it
- an iterator obtained by the method iterator() on this Extent
instance.public void closeAll()
closeAll
in interface javax.jdo.Extent
public QueryStatement newQueryStatement()
Queryable
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.
newQueryStatement
in interface Queryable
public QueryStatement newQueryStatement(java.lang.Class candidateClass)
Queryable
newQueryStatement
in interface Queryable
Queryable.newQueryStatement()
public Query.ResultObjectFactory newResultObjectFactory(QueryStatement stmt)
Queryable
The stmt argument must have been obtained by a previous call to newQueryStatement() on the same Queryable.
newResultObjectFactory
in interface Queryable
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |