Class DatabaseResourceSort
- java.lang.Object
-
- fr.paris.lutece.plugins.resource.business.database.DatabaseResourceSort
-
public final class DatabaseResourceSort extends java.lang.ObjectDatabase resource sort DTO
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatabaseResourceSortgetDatabaseResourceSort(java.lang.String strSort, boolean bSortAsc)Get a sort from a column namejava.lang.StringgetSort()Get the sort column namebooleangetSortAsc()Check if the sort should be ascending or descending
-
-
-
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 getbSortAsc- True to sort ascending, false otherwise- Returns:
- The sort, or the default sort if the specified one does not match any of the columns
-
-