Package org.apache.openjpa.persistence
Class ExtentImpl<T>
java.lang.Object
org.apache.openjpa.persistence.ExtentImpl<T>
An extent is a logical view of all instances of a class.
- Since:
- 0.4.1
- Author:
- Abe White
-
Constructor Summary
ConstructorsConstructorDescriptionExtentImpl(EntityManagerImpl em, Extent<T> extent) Constructor; supply delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()Close all open iterators that are consuming database resources.booleanDelegate.The extent's element type.The owning entity manager.Fetch configuration for controlling how iterated objects are loaded.booleanWhether the extent sees inserts and deletes in the current transaction.inthashCode()booleanWhether the extent includes subclasses.iterator()list()List the extent contents.voidsetIgnoreChanges(boolean ignoreChanges) Whether the extent sees inserts and deletes in the current transaction.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ExtentImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegatein interfaceExtent<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
Description copied from interface:ExtentThe owning entity manager.- Specified by:
getEntityManagerin interfaceExtent<T>
-
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
Description copied from interface:ExtentList the extent contents. -
iterator
-
closeAll
public void closeAll()Description copied from interface:ExtentClose all open iterators that are consuming database resources. -
hashCode
public int hashCode() -
equals
-