Class LimitAndSortHelper.GenericSortField

  • Enclosing class:
    LimitAndSortHelper

    public static class LimitAndSortHelper.GenericSortField
    extends Object
    A data-source-agnostic representation of a sort field, containing the column name and sort direction. Connectors use this to build native sort clauses for their respective data sources.
    • Constructor Detail

      • GenericSortField

        public GenericSortField​(String columnName,
                                boolean ascending)
        Creates a new sort field.
        Parameters:
        columnName - the name of the column to sort by
        ascending - true for ascending order, false for descending
    • Method Detail

      • getColumnName

        public String getColumnName()
        Returns:
        the name of the column to sort by
      • isAscending

        public boolean isAscending()
        Returns:
        true if the sort direction is ascending, false if descending