Class PaginationModel
java.lang.Object
com.smeup.kokos.sdk.entity.model.query.PaginationModel
Model class for pagination parameters.
It contains the limit and offset values used for paginating results.
The limit represents the maximum number of records to retrieve,
while the offset indicates the starting point for retrieving records.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PaginationModelfromFun(com.smeup.kokos.sdk.fun.Fun fun) Parses pagination parameters from a FUN input string and creates a PaginationModel instance.intgetLimit()intvoidsetOffset(int offset) void
-
Field Details
-
DEFAULT_OFFSET
public static final int DEFAULT_OFFSET- See Also:
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMIT- See Also:
-
-
Constructor Details
-
PaginationModel
public PaginationModel(int limit, int offset)
-
-
Method Details
-
getLimit
public int getLimit() -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
updateOffset
public void updateOffset() -
fromFun
Parses pagination parameters from a FUN input string and creates a PaginationModel instance.- Parameters:
fun- the FUN object containing the input string with pagination parameters in the format "LIMIT(value);OFFSET(value)"- Returns:
- a PaginationModel instance with the parsed limit and offset values, or default values if not specified
-