Package de.hybris.platform.util
Class StandardSearchResult<E>
java.lang.Object
de.hybris.platform.util.StandardSearchResult<E>
- All Implemented Interfaces:
SearchResult<E>,Serializable
- Direct Known Subclasses:
SQLSearchResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandardSearchResult(List<E> list, int totalcount, int requestedstart, int requestedcount) Deprecated, for removal: This API element is subject to removal in a future version.StandardSearchResult(List<E> list, int totalcount, int requestedstart, int requestedcount, String dataSourceId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCount()Gets the size of result collection with respect to specified range.Gets the id of used datasource.intGets specified result count.intGets specified start index.Gets the search result.intGets overall count of search result without paying respect to specified search range.intinthashCode()booleanvoidsetFromCache(boolean fromCache) voidsetUnitHash(int hash) toString()
-
Constructor Details
-
StandardSearchResult
-
StandardSearchResult
@Deprecated(since="2105", forRemoval=true) public StandardSearchResult(List<E> list, int totalcount, int requestedstart, int requestedcount) Deprecated, for removal: This API element is subject to removal in a future version.since 2105 - useStandardSearchResult(List, int, int, int, String)
-
-
Method Details
-
getCount
public int getCount()Description copied from interface:SearchResultGets the size of result collection with respect to specified range.- Specified by:
getCountin interfaceSearchResult<E>
-
getTotalCount
public int getTotalCount()Description copied from interface:SearchResultGets overall count of search result without paying respect to specified search range. Result collection size will be lower or same.- Specified by:
getTotalCountin interfaceSearchResult<E>
-
getOriginalResultList
-
getResult
Description copied from interface:SearchResultGets the search result. Returned collection uses lazy translation approach, on first access on an collection element the element will be translated to an item. In case the item was removed between gathering of search result and translation of specific element the returned collection will have anullvalue at this position.- Specified by:
getResultin interfaceSearchResult<E>
-
getRequestedStart
public int getRequestedStart()Description copied from interface:SearchResultGets specified start index.- Specified by:
getRequestedStartin interfaceSearchResult<E>
-
getRequestedCount
public int getRequestedCount()Description copied from interface:SearchResultGets specified result count.- Specified by:
getRequestedCountin interfaceSearchResult<E>
-
isFromCache
public boolean isFromCache() -
getUnitHash
public int getUnitHash() -
setUnitHash
public void setUnitHash(int hash) -
setFromCache
public void setFromCache(boolean fromCache) -
getDataSourceId
Description copied from interface:SearchResultGets the id of used datasource.- Specified by:
getDataSourceIdin interfaceSearchResult<E>
-
toString
-
equals
-
hashCode
public int hashCode()
-
StandardSearchResult(List, int, int, int, String)