Class BasicNamedQueryDataPopulator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<Sort> convertSort​(java.lang.String sort)
      Converts the String sort param into a list of objects.
      protected Sort convertSortBlock​(java.lang.String sortBlock)
      Convert A sort block, i.e.
      void populate​(NamedQueryData namedQueryData, NamedQuery namedQuery)
      Populate the target instance with values from the source instance.
      protected java.lang.Integer toOptionalInteger​(java.lang.String value)
      Convert the string to an integer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicNamedQueryDataPopulator

        public BasicNamedQueryDataPopulator()
    • Method Detail

      • toOptionalInteger

        protected java.lang.Integer toOptionalInteger​(java.lang.String value)
        Convert the string to an integer. If the value is null, then return null. This method assumes that a validation has already taken place, and a NumberFormatException is not expected at this point.
        Parameters:
        value - - the value to be converted
        Returns:
        the Integer value
      • convertSort

        protected java.util.List<Sort> convertSort​(java.lang.String sort)
        Converts the String sort param into a list of objects. The input, if not empty, should be already validated with the following format: {param}:{direction} Multiple sort parameters are allowed if the blocks are separated by comma.
        Parameters:
        sort - - the sort parameter received from the request
        Returns:
        a list of Sort objects
      • convertSortBlock

        protected Sort convertSortBlock​(java.lang.String sortBlock)
        Convert A sort block, i.e. {param}:{direction} into a Sort object.
        Parameters:
        sortBlock -
        Returns: