Interface SortStatementFormatter

    • Method Detail

      • isApplicable

        boolean isApplicable​(AttributeDescriptorModel attributeDescriptor)
        Determines if a custom sort statement formatter should be applied given the AttributeDescriptorModel provided.
        Parameters:
        attributeDescriptor - the attribute descriptor model used to evaluate the condition
        Returns:
        true when the condition is met and the sort parameter should be formatted using formatSortStatement(Sort); false otherwise
      • formatSortStatement

        java.lang.String formatSortStatement​(Sort sort)
        Format the sort parameter of the provided Sort object.
        Parameters:
        sort - the Sort object containing the sort parameter and direction
        Returns:
        the formatted sort parameter