public interface Extent<T> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
closeAll()
Close all open iterators that are consuming database resources.
|
Extent |
getDelegate()
Deprecated.
cast to
ExtentImpl instead. This
method pierces the published-API boundary, as does the SPI cast. |
Class<T> |
getElementClass()
The extent's element type.
|
OpenJPAEntityManager |
getEntityManager()
The owning entity manager.
|
FetchPlan |
getFetchPlan()
Fetch configuration for controlling how iterated objects are loaded.
|
boolean |
getIgnoreChanges()
Whether the extent sees inserts and deletes in the current transaction.
|
boolean |
hasSubclasses()
Whether the extent includes subclasses.
|
List<T> |
list()
List the extent contents.
|
void |
setIgnoreChanges(boolean ignoreChanges)
Whether the extent sees inserts and deletes in the current transaction.
|
forEach, iterator, spliterator
boolean hasSubclasses()
OpenJPAEntityManager getEntityManager()
FetchPlan getFetchPlan()
boolean getIgnoreChanges()
void setIgnoreChanges(boolean ignoreChanges)
void closeAll()
@Deprecated Extent getDelegate()
ExtentImpl
instead. This
method pierces the published-API boundary, as does the SPI cast.Copyright © 2006–2019 Apache Software Foundation. All rights reserved.