org.apache.openjpa.kernel
| Constructor and Description |
|---|
DelegatingExtent(Extent extent)
Constructor; supply delegate.
|
DelegatingExtent(Extent extent,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeAll()
Close all open iterators.
|
boolean |
equals(java.lang.Object other) |
Broker |
getBroker()
The broker that generated the extent.
|
Extent |
getDelegate()
Return the direct delegate.
|
java.lang.Class |
getElementType()
The class of extent elements.
|
FetchConfiguration |
getFetchConfiguration()
Return the (mutable) fetch configuration for this extent.
|
boolean |
getIgnoreChanges()
Whether this extent will ignore changes made in the current transaction.
|
Extent |
getInnermostDelegate()
Return the native delegate.
|
int |
hashCode() |
boolean |
hasSubclasses()
Whether the extent includes subclasses.
|
java.util.Iterator |
iterator()
Return an iterator over the extent members.
|
java.util.List |
list()
Returns a list of all objects represented by this extent.
|
void |
lock()
Synchronizes on an internal lock.
|
void |
setIgnoreChanges(boolean ignoreCache)
Whether this extent will ignore changes made in the current transaction.
|
protected java.lang.RuntimeException |
translate(java.lang.RuntimeException re)
Translate the OpenJPA exception.
|
void |
unlock()
Release the internal lock.
|
public DelegatingExtent(Extent extent)
public DelegatingExtent(Extent extent, RuntimeExceptionTranslator trans)
public Extent getDelegate()
public Extent getInnermostDelegate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectprotected java.lang.RuntimeException translate(java.lang.RuntimeException re)
public java.lang.Class getElementType()
ExtentgetElementType in interface Extentpublic boolean hasSubclasses()
ExtenthasSubclasses in interface Extentpublic Broker getBroker()
Extentpublic FetchConfiguration getFetchConfiguration()
ExtentgetFetchConfiguration in interface Extentpublic boolean getIgnoreChanges()
ExtentgetIgnoreChanges in interface Extentpublic void setIgnoreChanges(boolean ignoreCache)
ExtentsetIgnoreChanges in interface Extentpublic java.util.List list()
ExtentList by traversing the entire iterator returned by a
call to Extent.iterator(). This means that Collection.size() will
work correctly, but if the extent represents a large data set, this
method may be quite slow and may consume quite a bit of memory.public java.util.Iterator iterator()
Extentpublic void closeAll()
Extentpublic void lock()
Extent