Package io.vertigo.datamodel.data.model
Class DtListState
java.lang.Object
io.vertigo.datamodel.data.model.DtListState
DtList state : sorting and paging informations
- Author:
- npiedeloup
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DtListStateintstatic DtListStatestatic DtListStatewithDefault(Integer defaultMaxRows, DataFieldName defaultSortFieldName, Boolean defaultSortDesc) Added default properties to another DtListState.
-
Field Details
-
DEFAULT_MAX_ROWS
public static final int DEFAULT_MAX_ROWS- See Also:
-
-
Method Details
-
defaultOf
- Parameters:
maxRows- max returning elements (null if not use) skipRows elements to skip (mandatory, 0 by default)
-
of
- Parameters:
maxRows- max returning elements (null if not use) skipRows elements to skip (mandatory, 0 by default)
-
of
- 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, DataFieldName 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)
-
withLimit
-
getMaxRows
- Returns:
- max returning elements
-
getSkipRows
public int getSkipRows()- Returns:
- elements to skip
-
getSortFieldName
- Returns:
- sort fieldName
-
isSortDesc
- Returns:
- desc or asc order
-