Name
Extent
Synopsis
An Extent
is used to access
all of the instances of a particular class and, optionally, its
subclasses. An application can either iterate over all the instances
or use the extent as the set of candidates instances filtered with a
Query
.
public interface Extent { public void close(Iterator it); public void closeAll( ); public Class getCandidateClass( ); public PersistenceManager getPersistenceManager( ); public boolean hasSubclasses( ); public Iterator iterator( ); }
Returned by
PersistenceManager.getExtent(
)
Passed to
PersistenceManager.newQuery(
)
, Query.setCandidates(
)
Get Java Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.