Package org.apache.openjpa.persistence
Class ExtentImpl<T>
- java.lang.Object
-
- org.apache.openjpa.persistence.ExtentImpl<T>
-
-
Constructor Summary
Constructors Constructor Description ExtentImpl(EntityManagerImpl em, Extent<T> extent)Constructor; supply delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAll()Close all open iterators that are consuming database resources.booleanequals(java.lang.Object other)Extent<T>getDelegate()Delegate.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.inthashCode()booleanhasSubclasses()Whether the extent includes subclasses.java.util.Iterator<T>iterator()java.util.List<T>list()List the extent contents.voidsetIgnoreChanges(boolean ignoreChanges)Whether the extent sees inserts and deletes in the current transaction.
-
-
-
Constructor Detail
-
ExtentImpl
public ExtentImpl(EntityManagerImpl em, Extent<T> extent)
Constructor; supply delegate.
-
-
Method Detail
-
getDelegate
public Extent<T> getDelegate()
Delegate.- Specified by:
getDelegatein interfaceExtent<T>
-
getElementClass
public java.lang.Class<T> getElementClass()
Description copied from interface:ExtentThe extent's element type.- Specified by:
getElementClassin interfaceExtent<T>
-
hasSubclasses
public boolean hasSubclasses()
Description copied from interface:ExtentWhether the extent includes subclasses.- Specified by:
hasSubclassesin interfaceExtent<T>
-
getEntityManager
public OpenJPAEntityManager getEntityManager()
Description copied from interface:ExtentThe owning entity manager.- Specified by:
getEntityManagerin interfaceExtent<T>
-
getFetchPlan
public FetchPlan getFetchPlan()
Description copied from interface:ExtentFetch configuration for controlling how iterated objects are loaded.- Specified by:
getFetchPlanin interfaceExtent<T>
-
getIgnoreChanges
public boolean getIgnoreChanges()
Description copied from interface:ExtentWhether the extent sees inserts and deletes in the current transaction.- Specified by:
getIgnoreChangesin interfaceExtent<T>
-
setIgnoreChanges
public void setIgnoreChanges(boolean ignoreChanges)
Description copied from interface:ExtentWhether the extent sees inserts and deletes in the current transaction.- Specified by:
setIgnoreChangesin interfaceExtent<T>
-
list
public java.util.List<T> list()
Description copied from interface:ExtentList the extent contents.
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<T>
-
closeAll
public void closeAll()
Description copied from interface:ExtentClose all open iterators that are consuming database resources.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-