Package org.apache.openjpa.kernel
Class DelegatingExtent<T>
- java.lang.Object
- 
- org.apache.openjpa.kernel.DelegatingExtent<T>
 
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingExtent(Extent<T> extent)Constructor; supply delegate.DelegatingExtent(Extent<T> extent, RuntimeExceptionTranslator trans)Constructor; supply delegate and exception translator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAll()Close all open iterators.booleanequals(java.lang.Object other)BrokergetBroker()The broker that generated the extent.Extent<T>getDelegate()Return the direct delegate.java.lang.Class<T>getElementType()The class of extent elements.FetchConfigurationgetFetchConfiguration()Return the (mutable) fetch configuration for this extent.booleangetIgnoreChanges()Whether this extent will ignore changes made in the current transaction.Extent<T>getInnermostDelegate()Return the native delegate.inthashCode()booleanhasSubclasses()Whether the extent includes subclasses.java.util.Iterator<T>iterator()Return an iterator over the extent members.java.util.List<T>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 java.lang.RuntimeExceptiontranslate(java.lang.RuntimeException re)Translate the OpenJPA exception.voidunlock()Release the internal lock.
 
- 
- 
- 
Constructor Detail- 
DelegatingExtentpublic DelegatingExtent(Extent<T> extent, RuntimeExceptionTranslator trans) Constructor; supply delegate and exception translator.
 
- 
 - 
Method Detail- 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
translateprotected java.lang.RuntimeException translate(java.lang.RuntimeException re) Translate the OpenJPA exception.
 - 
getElementTypepublic java.lang.Class<T> getElementType() Description copied from interface:ExtentThe class of extent elements.- Specified by:
- getElementTypein interface- Extent<T>
 
 - 
hasSubclassespublic boolean hasSubclasses() Description copied from interface:ExtentWhether the extent includes subclasses.- Specified by:
- hasSubclassesin interface- Extent<T>
 
 - 
getBrokerpublic Broker getBroker() Description copied from interface:ExtentThe broker that generated the extent.
 - 
getFetchConfigurationpublic FetchConfiguration getFetchConfiguration() Description copied from interface:ExtentReturn the (mutable) fetch configuration for this extent.- Specified by:
- getFetchConfigurationin interface- Extent<T>
 
 - 
getIgnoreChangespublic boolean getIgnoreChanges() Description copied from interface:ExtentWhether this extent will ignore changes made in the current transaction.- Specified by:
- getIgnoreChangesin interface- Extent<T>
 
 - 
setIgnoreChangespublic void setIgnoreChanges(boolean ignoreCache) Description copied from interface:ExtentWhether this extent will ignore changes made in the current transaction.- Specified by:
- setIgnoreChangesin interface- Extent<T>
 
 - 
listpublic java.util.List<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.
 - 
iteratorpublic java.util.Iterator<T> iterator() Description copied from interface:ExtentReturn an iterator over the extent members.
 - 
closeAllpublic void closeAll() Description copied from interface:ExtentClose all open iterators.
 - 
lockpublic void lock() Description copied from interface:ExtentSynchronizes on an internal lock.
 
- 
 
-