Package org.apache.openjpa.persistence
Interface Extent<T>
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
ExtentImpl
An extent is a logical view of all instances of a class.
- Since:
- 0.4.0
- Author:
- Abe White
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
Close all open iterators that are consuming database resources.Deprecated.The extent's element type.The owning entity manager.Fetch configuration for controlling how iterated objects are loaded.boolean
Whether the extent sees inserts and deletes in the current transaction.boolean
Whether the extent includes subclasses.list()
List the extent contents.void
setIgnoreChanges
(boolean ignoreChanges) Whether the extent sees inserts and deletes in the current transaction.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getElementClass
The extent's element type. -
hasSubclasses
boolean hasSubclasses()Whether the extent includes subclasses. -
getEntityManager
OpenJPAEntityManager getEntityManager()The owning entity manager. -
getFetchPlan
FetchPlan getFetchPlan()Fetch configuration for controlling how iterated objects are loaded. -
getIgnoreChanges
boolean getIgnoreChanges()Whether the extent sees inserts and deletes in the current transaction. -
setIgnoreChanges
void setIgnoreChanges(boolean ignoreChanges) Whether the extent sees inserts and deletes in the current transaction. -
list
List the extent contents. -
closeAll
void closeAll()Close all open iterators that are consuming database resources. -
getDelegate
Deprecated.cast toExtentImpl
instead. This method pierces the published-API boundary, as does the SPI cast.
-
ExtentImpl
instead.