Class LazyLoadModelList<V>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
de.hybris.platform.core.internal.BaseLazyLoadItemList<E>
de.hybris.platform.core.LazyLoadItemList<V>
de.hybris.platform.servicelayer.search.impl.LazyLoadModelList<V>
- All Implemented Interfaces:
Serializable,Iterable<V>,Collection<V>,List<V>
Model variant of
LazyLoadItemList which is used in/for the service layer. This List is build around the
LazyLoadItemList and additionally buffers a small List of Models of this List which are lazily loaded when the list
elements are read.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.core.LazyLoadItemList
LazyLoadItemList.BufferedPage<T> -
Field Summary
FieldsFields inherited from class de.hybris.platform.core.LazyLoadItemList
DEFAULT_PREFETCH_SIZE, DEFUALT_PREFETCH_SIZE, EMPTY_LIST, PREFETCH_SIZE_PROPERTYFields inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
DEFAULT_CONFIG_PREFETCH_SIZEFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionLazyLoadModelList(LazyLoadItemList llItemList, int prefetchSize) LazyLoadModelList(LazyLoadItemList llItemList, int prefetchSize, List<Class> expectedClassList, ItemObjectResolver itemResolver) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ItemObjectResolver<V>Should provide anItemObjectResolver.booleanOverride this method to provide a resolving mechanism for generating values for the pre-fetchedBaseLazyLoadItemList.pkListentries.voidsetExpectedClassList(List<Class> expectedClassList) Deprecated, for removal: This API element is subject to removal in a future version.since 4.8voidsetItemResolver(ItemObjectResolver itemResolver) Deprecated, for removal: This API element is subject to removal in a future version.since 4.8Methods inherited from class de.hybris.platform.core.LazyLoadItemList
add, clear, get, getBuffered, getBufferedPageIfLoaded, getCurrentBufferedPage, getOrSwitchBufferedPage, invalidateBuffer, isIgnoreMissing, remove, set, setIgnoreMissing, setModifiable, setPreFetchSize, switchBufferedPage, switchBufferedPageNoLock, switchBufferedPageSynchronized, switchPageMethods inherited from class de.hybris.platform.core.internal.BaseLazyLoadItemList
assureIndex, equals, getConfig, getPK, getPKList, getPKListInternal, getPrefetchLanguages, getPreFetchSize, hashCode, iterator, size, toStringMethods inherited from class java.util.AbstractList
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
EMPTY_MODEL_LIST
-
-
Constructor Details
-
LazyLoadModelList
-
LazyLoadModelList
public LazyLoadModelList(LazyLoadItemList llItemList, int prefetchSize, List<Class> expectedClassList, ItemObjectResolver itemResolver)
-
-
Method Details
-
loadPage
Description copied from class:LazyLoadItemListOverride this method to provide a resolving mechanism for generating values for the pre-fetchedBaseLazyLoadItemList.pkListentries.- Overrides:
loadPagein classLazyLoadItemList<V>
-
isModifiable
public boolean isModifiable()- Overrides:
isModifiablein classBaseLazyLoadItemList<V>- Returns:
- the modifiable
-
contains
- Specified by:
containsin interfaceCollection<V>- Specified by:
containsin interfaceList<V>- Overrides:
containsin classBaseLazyLoadItemList<V>
-
getItemResolver
Should provide anItemObjectResolver. The callback is used - for every entry in this collection - to retrieve service-layer object from its jalo-layer equivalent -
getExpectedClassList
-
setExpectedClassList
@Deprecated(since="4.8", forRemoval=true) public void setExpectedClassList(List<Class> expectedClassList) Deprecated, for removal: This API element is subject to removal in a future version.since 4.8 -
setItemResolver
@Deprecated(since="4.8", forRemoval=true) public void setItemResolver(ItemObjectResolver itemResolver) Deprecated, for removal: This API element is subject to removal in a future version.since 4.8
-