Class DtListState
- java.lang.Object
-
- io.vertigo.datamodel.structure.model.DtListState
-
public final class DtListState extends Object
DtList state : sorting and paging informations- Author:
- npiedeloup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DtListState
defaultOf(Class<? extends Entity> entityClass)
Optional<Integer>
getMaxRows()
int
getSkipRows()
Optional<String>
getSortFieldName()
Optional<Boolean>
isSortDesc()
static DtListState
of(Integer maxRows)
static DtListState
of(Integer maxRows, int skipRows, String sortFieldName, Boolean sortDesc)
DtListState
withDefault(Integer defaultMaxRows, DtFieldName defaultSortFieldName, Boolean defaultSortDesc)
Added default properties to another DtListState.
-
-
-
Method Detail
-
defaultOf
public static DtListState defaultOf(Class<? extends Entity> entityClass)
- Parameters:
maxRows
- max returning elements (null if not use) skipRows elements to skip (mandatory, 0 by default)
-
of
public static DtListState of(Integer maxRows)
- Parameters:
maxRows
- max returning elements (null if not use) skipRows elements to skip (mandatory, 0 by default)
-
of
public static DtListState of(Integer maxRows, int skipRows, String sortFieldName, Boolean sortDesc)
- Parameters:
maxRows
- max returning elements (null if not use)skipRows
- elements to skip (mandatory, 0 by default)sortFieldName
- sort fieldName (null if not use)sortDesc
- desc or asc order (null if not use)
-
withDefault
public DtListState withDefault(Integer defaultMaxRows, DtFieldName defaultSortFieldName, Boolean defaultSortDesc)
Added default properties to another DtListState.- Parameters:
maxRows
- max returning elements (null if not use)sortFieldName
- sort fieldName (null if not use)sortDesc
- desc or asc order (null if not use)
-
getSkipRows
public int getSkipRows()
- Returns:
- elements to skip
-
-