Class SearchResultImpl<E>

  • All Implemented Interfaces:
    SearchResult<E>

    public class SearchResultImpl<E>
    extends java.lang.Object
    implements SearchResult<E>
    Implementation of the servicelayer SearchResult interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchResultImpl​(java.util.List<E> result, int totalCount, int requestedCount, int requestedStart)
      Default constructor.
    • Constructor Detail

      • SearchResultImpl

        public SearchResultImpl​(java.util.List<E> result,
                                int totalCount,
                                int requestedCount,
                                int requestedStart)
        Default constructor.
        Parameters:
        result - the result list from the jalo search
        totalCount - the overall count (all elements) of the jalo search
        requestedCount - the requested count (how many elements should be in the list?)
        requestedStart - the start count (this list should start at this element)
    • Method Detail

      • getResult

        public java.util.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 model. In case the entity 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>
      • isFromCache

        public boolean isFromCache()
      • setFromCache

        public void setFromCache​(boolean fromCache)