Class StandardSearchResult<E>

java.lang.Object
de.hybris.platform.util.StandardSearchResult<E>
All Implemented Interfaces:
SearchResult<E>, Serializable
Direct Known Subclasses:
SQLSearchResult

public class StandardSearchResult<E> extends Object implements SearchResult<E>, Serializable
See Also:
  • Constructor Details

    • StandardSearchResult

      public StandardSearchResult(List<E> list, int totalcount, int requestedstart, int requestedcount, String dataSourceId)
    • 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.
  • Method Details

    • getCount

      public int getCount()
      Description copied from interface: SearchResult
      Gets the size of result collection with respect to specified range.
      Specified by:
      getCount in interface SearchResult<E>
    • getTotalCount

      public int getTotalCount()
      Description copied from interface: SearchResult
      Gets overall count of search result without paying respect to specified search range. Result collection size will be lower or same.
      Specified by:
      getTotalCount in interface SearchResult<E>
    • getOriginalResultList

      public List<E> getOriginalResultList()
    • getResult

      public List<E> getResult()
      Description copied from interface: SearchResult
      Gets 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 a null value at this position.
      Specified by:
      getResult in interface SearchResult<E>
    • getRequestedStart

      public int getRequestedStart()
      Description copied from interface: SearchResult
      Gets specified start index.
      Specified by:
      getRequestedStart in interface SearchResult<E>
    • getRequestedCount

      public int getRequestedCount()
      Description copied from interface: SearchResult
      Gets specified result count.
      Specified by:
      getRequestedCount in interface SearchResult<E>
    • isFromCache

      public boolean isFromCache()
    • getUnitHash

      public int getUnitHash()
    • setUnitHash

      public void setUnitHash(int hash)
    • setFromCache

      public void setFromCache(boolean fromCache)
    • getDataSourceId

      public String getDataSourceId()
      Description copied from interface: SearchResult
      Gets the id of used datasource.
      Specified by:
      getDataSourceId in interface SearchResult<E>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object