Interface Sorting

All Known Implementing Classes:
SortingParser.SortImpl

public interface Sorting
Describes how something is sorted. For each sorting-item there's one instance of Sorting. For example: We sort 'Address' by 'surname', 'firstname' and 'city'. So there will be a Sorting-instance for 'surname', 'firstname' and 'city'
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Impl note: unfortunately we don't have access to ch.tocco.nice2.persist.query.Ordering.Direction here.
  • Method Details

    • isAscending

      boolean isAscending()
      Impl note: unfortunately we don't have access to ch.tocco.nice2.persist.query.Ordering.Direction here.
      Returns:
      True if ascending-sorted, false if descending-sorted.
    • getOrderItem

      String getOrderItem()
      Returns:
      The order-item. Can be a field or a path through relations going to a field.