Extent
- Super Interfaces:
Iterable<E>
Instances of the
Extent
class represent the entire collection of instances in the data store of the candidate class or interface possibly including its subclasses or subinterfaces. The Extent
instance has two possible uses:
- to iterate all instances of a particular class or interface
- to execute a
Query
in the data store over all instances of a particular class or interface
- Since:
- JDO 1.0
Public Methods
void close(Iterator<E> it)
Iterator
s closed by this method will return false
to hasNext()
and will throw NoSuchElementException
on next()
. The Extent
instance can still be used as a parameter of Query.setExtent
, and to get an Iterator
. - Parameters:
it
- anIterator
obtained by the methoditerator()
on thisExtent
instance.
- Since:
- JDO 1.0
void closeAll()
Iterator
s closed by this method will return false
to hasNext()
and will throw NoSuchElementException
on next()
. The Extent
instance can still be used as a parameter of Query.setExtent
, and to get an Iterator
. - Since:
- JDO 1.0
Class<E> getCandidateClass()
- Return:
- the
Class
of instances of thisExtent
.
- Since:
- JDO 1.0
FetchPlan getFetchPlan()
- Return:
- the fetch plan
- Since:
- JDO 2.0
- Return:
- the owning
PersistenceManager
- Since:
- JDO 1.0
boolean hasSubclasses()
- Return:
- true if this
Extent
was defined to contain instances that are of a subclass type.
- Since:
- JDO 1.0
Iterator<E> iterator()
The behavior of the returned iterator might depend on the setting of the
ignoreCache
flag in the owning PersistenceManager
. - Return:
- an iterator over all instances in the
Extent
- Since:
- JDO 1.0