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
ConstructorDescriptionExtentImpl
(EntityManagerImpl em, Extent<T> extent) Constructor; supply delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
Close all open iterators that are consuming database resources.boolean
Delegate.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.int
hashCode()
boolean
Whether the extent includes subclasses.iterator()
list()
List the extent contents.void
setIgnoreChanges
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ExtentImpl
Constructor; supply delegate.
-
-
Method Details
-
getDelegate
Delegate.- Specified by:
getDelegate
in interfaceExtent<T>
-
getElementClass
Description copied from interface:Extent
The extent's element type.- Specified by:
getElementClass
in interfaceExtent<T>
-
hasSubclasses
public boolean hasSubclasses()Description copied from interface:Extent
Whether the extent includes subclasses.- Specified by:
hasSubclasses
in interfaceExtent<T>
-
getEntityManager
Description copied from interface:Extent
The owning entity manager.- Specified by:
getEntityManager
in interfaceExtent<T>
-
getFetchPlan
Description copied from interface:Extent
Fetch configuration for controlling how iterated objects are loaded.- Specified by:
getFetchPlan
in interfaceExtent<T>
-
getIgnoreChanges
public boolean getIgnoreChanges()Description copied from interface:Extent
Whether the extent sees inserts and deletes in the current transaction.- Specified by:
getIgnoreChanges
in interfaceExtent<T>
-
setIgnoreChanges
public void setIgnoreChanges(boolean ignoreChanges) Description copied from interface:Extent
Whether the extent sees inserts and deletes in the current transaction.- Specified by:
setIgnoreChanges
in interfaceExtent<T>
-
list
Description copied from interface:Extent
List the extent contents. -
iterator
-
closeAll
public void closeAll()Description copied from interface:Extent
Close all open iterators that are consuming database resources. -
hashCode
public int hashCode() -
equals
-