Package de.bp2019.pusl.util
Class LimitOffsetPageRequest
- java.lang.Object
-
- de.bp2019.pusl.util.LimitOffsetPageRequest
-
- All Implemented Interfaces:
org.springframework.data.domain.Pageable
public class LimitOffsetPageRequest extends Object implements org.springframework.data.domain.Pageable
Custom Pageable used to get Vaadin and Spring to cooperate- Author:
- Leon Chemnitz
-
-
Constructor Summary
Constructors Constructor Description LimitOffsetPageRequest(int limit, int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Pageable
first()
long
getOffset()
int
getPageNumber()
int
getPageSize()
org.springframework.data.domain.Sort
getSort()
boolean
hasPrevious()
org.springframework.data.domain.Pageable
next()
org.springframework.data.domain.Pageable
previous()
org.springframework.data.domain.Pageable
previousOrFirst()
-
-
-
Method Detail
-
getPageNumber
public int getPageNumber()
- Specified by:
getPageNumber
in interfaceorg.springframework.data.domain.Pageable
-
getPageSize
public int getPageSize()
- Specified by:
getPageSize
in interfaceorg.springframework.data.domain.Pageable
-
getOffset
public long getOffset()
- Specified by:
getOffset
in interfaceorg.springframework.data.domain.Pageable
-
getSort
public org.springframework.data.domain.Sort getSort()
- Specified by:
getSort
in interfaceorg.springframework.data.domain.Pageable
-
next
public org.springframework.data.domain.Pageable next()
- Specified by:
next
in interfaceorg.springframework.data.domain.Pageable
-
previous
public org.springframework.data.domain.Pageable previous()
-
previousOrFirst
public org.springframework.data.domain.Pageable previousOrFirst()
- Specified by:
previousOrFirst
in interfaceorg.springframework.data.domain.Pageable
-
first
public org.springframework.data.domain.Pageable first()
- Specified by:
first
in interfaceorg.springframework.data.domain.Pageable
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceorg.springframework.data.domain.Pageable
-
-