Interface SortStatementFormatter
-
- All Known Implementing Classes:
DefaultSortStatementFormatter
,ItemtypeSortStatementFormatter
,StringSortStatementFormatter
public interface SortStatementFormatter
The formatter detects if a custom sort statement should be used given a special condition is fulfilled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
formatSortStatement(Sort sort)
Format the sort parameter of the providedSort
object.boolean
isApplicable(AttributeDescriptorModel attributeDescriptor)
Determines if a custom sort statement formatter should be applied given theAttributeDescriptorModel
provided.
-
-
-
Method Detail
-
isApplicable
boolean isApplicable(AttributeDescriptorModel attributeDescriptor)
Determines if a custom sort statement formatter should be applied given theAttributeDescriptorModel
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
-
-