Package de.aeb.xnsg.foundation.bf.paging
Class PageRequestDTO
java.lang.Object
de.aeb.xnsg.foundation.bf.paging.PageRequestDTO
Parameters for query result pagination.
The query results are always limited in order to avoid system and communication overflow.
-
Field Summary
FieldsModifier and TypeFieldDescriptionIndicates that the total number of available elements will be calculated and returned in the response.static final String@Min(1L) @Max(1000L) IntegerThe maximum number of elements to be returned from the ordered result list.static final intstatic final intstatic final intstatic final int@Min(0L) @Max(10000L) IntegerThe number of elements to be skipped in the ordered result list. -
Constructor Summary
ConstructorsConstructorDescriptionPageRequestDTO(Integer offset, Integer limit) PageRequestDTO(Integer offset, Integer limit, Boolean countAll) -
Method Summary
-
Field Details
-
MIN_OFFSET
public static final int MIN_OFFSET- See Also:
-
MAX_OFFSET
public static final int MAX_OFFSET- See Also:
-
MIN_LIMIT
public static final int MIN_LIMIT- See Also:
-
MAX_LIMIT
public static final int MAX_LIMIT- See Also:
-
DEFAULT_LIMIT
- See Also:
-
offset
@Min(0L) @Max(10000L) @DefaultValue("0") @Nullable @QueryParam("offset") public @Min(0L) @Max(10000L) Integer offsetThe number of elements to be skipped in the ordered result list.
Minimum: 0
Maximum: 10000 -
limit
@Min(1L) @Max(1000L) @DefaultValue("100") @Nullable @QueryParam("limit") public @Min(1L) @Max(1000L) Integer limitThe maximum number of elements to be returned from the ordered result list.
Minimum: 1
Maximum: 1000 -
countAll
Indicates that the total number of available elements will be calculated and returned in the response.- See Also:
-
-
Constructor Details
-
PageRequestDTO
public PageRequestDTO() -
PageRequestDTO
-
PageRequestDTO
-