A - the aggregate root type that is paginated.I - the aggregate root identifier type.public interface PaginationTypePicker<A extends AggregateRoot<I>,I>
Paginator DSL allowing to choose the pagination type. Three pagination
types are supported: | Modifier and Type | Method and Description |
|---|---|
KeyValuePicker<A,I> |
byAttribute(String attributeName)
Choose a key-based pagination type.
|
LimitPicker<Slice<A>,A,I> |
byOffset(long startingOffset)
Choose an offset-based pagination type.
|
SizePicker<A,I> |
byPage(long pageIndex)
Choose a page-based pagination type.
|
SizePicker<A,I> byPage(long pageIndex)
pageIndex - the index of the page containing objects that will be returned.LimitPicker<Slice<A>,A,I> byOffset(long startingOffset)
startingOffset - the index of first object that will be returned.KeyValuePicker<A,I> byAttribute(String attributeName)
attributeName - the attribute on which the lessThan/greaterThan comparison will be made.Copyright © 2013-2017–2017 SeedStack. All rights reserved.