Package org.apache.openjpa.persistence
Interface Extent<T>
-
- All Superinterfaces:
java.lang.Iterable<T>
- All Known Implementing Classes:
ExtentImpl
public interface Extent<T> extends java.lang.Iterable<T>An extent is a logical view of all instances of a class.- Since:
- 0.4.0
- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcloseAll()Close all open iterators that are consuming database resources.ExtentgetDelegate()Deprecated.cast toExtentImplinstead.java.lang.Class<T>getElementClass()The extent's element type.OpenJPAEntityManagergetEntityManager()The owning entity manager.FetchPlangetFetchPlan()Fetch configuration for controlling how iterated objects are loaded.booleangetIgnoreChanges()Whether the extent sees inserts and deletes in the current transaction.booleanhasSubclasses()Whether the extent includes subclasses.java.util.List<T>list()List the extent contents.voidsetIgnoreChanges(boolean ignoreChanges)Whether the extent sees inserts and deletes in the current transaction.
-
-
-
Method Detail
-
getElementClass
java.lang.Class<T> 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
java.util.List<T> list()
List the extent contents.
-
closeAll
void closeAll()
Close all open iterators that are consuming database resources.
-
getDelegate
@Deprecated Extent getDelegate()
Deprecated.cast toExtentImplinstead. This method pierces the published-API boundary, as does the SPI cast.
-
-