Class DatabaseResourceSort


  • public final class DatabaseResourceSort
    extends java.lang.Object
    Database resource sort DTO
    • Method Detail

      • getSort

        public java.lang.String getSort()
        Get the sort column name
        Returns:
        The sort column name
      • getSortAsc

        public boolean getSortAsc()
        Check if the sort should be ascending or descending
        Returns:
        True to sort ascending, false otherwise
      • getDatabaseResourceSort

        public static DatabaseResourceSort getDatabaseResourceSort​(java.lang.String strSort,
                                                                   boolean bSortAsc)
        Get a sort from a column name
        Parameters:
        strSort - The sort to get
        bSortAsc - True to sort ascending, false otherwise
        Returns:
        The sort, or the default sort if the specified one does not match any of the columns