Class CriteriaSearchConfiguration


  • public class CriteriaSearchConfiguration
    extends Object
    Contains configuration parameters for a CriteriaSearch.
    Author:
    Stefan Reichert, Peter Friese
    • Constructor Detail

      • CriteriaSearchConfiguration

        public CriteriaSearchConfiguration()
        Constructs a new CriteriaSearchConfiguration instance with all fields set to either null or false.
    • Method Detail

      • isForceEagerLoading

        public boolean isForceEagerLoading()
        Returns whether or not eager loading is enabled.
        Returns:
        true if eager loading is enabled, false otherwise
      • setForceEagerLoading

        public void setForceEagerLoading​(boolean forceEagerLoading)
        Sets whether or not eager loading is to be enabled.
        Parameters:
        forceEagerLoading - true if eager loading is to be enabled, false otherwise
      • getFirstResult

        public Integer getFirstResult()
        Gets the first result to retrieve.
        Returns:
        the first result to retrieve
      • setFirstResult

        public void setFirstResult​(Integer firstResult)
        Sets the first result to retrieve.
        Parameters:
        firstResult - the first result to retrieve
      • getFetchSize

        public Integer getFetchSize()
        Gets the fetch size.
        Returns:
        the fetch size
      • setFetchSize

        public void setFetchSize​(Integer fetchSize)
        Sets the fetch size.
        Parameters:
        fetchSize - the fetch size
      • getMaximumResultSize

        public Integer getMaximumResultSize()
        Gets the maximum size of the search result.
        Returns:
        the maximum size of the search result.
      • setMaximumResultSize

        public void setMaximumResultSize​(Integer maximumResultSize)
        Sets the maxmimum size of the result.
        Parameters:
        maximumResultSize - A number indicating how many results will be returned.