Class DelegatingExtent<T>
java.lang.Object
org.apache.openjpa.kernel.DelegatingExtent<T>
- All Implemented Interfaces:
Extent<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingExtent(Extent<T> extent) Constructor; supply delegate.DelegatingExtent(Extent<T> extent, RuntimeExceptionTranslator trans) Constructor; supply delegate and exception translator. -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()Close all open iterators.booleanThe broker that generated the extent.Return the direct delegate.The class of extent elements.Return the (mutable) fetch configuration for this extent.booleanWhether this extent will ignore changes made in the current transaction.Return the native delegate.inthashCode()booleanWhether the extent includes subclasses.iterator()Return an iterator over the extent members.list()Returns a list of all objects represented by this extent.voidlock()Synchronizes on an internal lock.voidsetIgnoreChanges(boolean ignoreCache) Whether this extent will ignore changes made in the current transaction.protected RuntimeExceptionTranslate the OpenJPA exception.voidunlock()Release the internal lock.
-
Constructor Details
-
DelegatingExtent
-
DelegatingExtent
Constructor; supply delegate and exception translator.
-
-
Method Details
-
getDelegate
-
getInnermostDelegate
-
hashCode
-
equals
-
translate
Translate the OpenJPA exception. -
getElementType
-
hasSubclasses
public boolean hasSubclasses()Description copied from interface:ExtentWhether the extent includes subclasses.- Specified by:
hasSubclassesin interfaceExtent<T>
-
getBroker
-
getFetchConfiguration
Description copied from interface:ExtentReturn the (mutable) fetch configuration for this extent.- Specified by:
getFetchConfigurationin interfaceExtent<T>
-
getIgnoreChanges
public boolean getIgnoreChanges()Description copied from interface:ExtentWhether this extent will ignore changes made in the current transaction.- Specified by:
getIgnoreChangesin interfaceExtent<T>
-
setIgnoreChanges
public void setIgnoreChanges(boolean ignoreCache) Description copied from interface:ExtentWhether this extent will ignore changes made in the current transaction.- Specified by:
setIgnoreChangesin interfaceExtent<T>
-
list
Description copied from interface:ExtentReturns a list of all objects represented by this extent. This method creates aListby traversing the entire iterator returned by a call toExtent.iterator(). This means thatCollection.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. -
iterator
-
closeAll
-
lock
-
unlock
-