- Type Parameters:
E- the entity typeID- the identifier type
- All Superinterfaces:
Data.GenericRepository<E,ID>
- Enclosing class:
Data
A
Data.GenericRepository that supports pagination.-
Method Summary
Modifier and TypeMethodDescriptionpages(PageRequest pageable) ReturnPagewith all entities of theEtype.slices(PageRequest pageable) ReturnSlicewith all entities of theEtype.
-
Method Details
-
pages
ReturnPagewith all entities of theEtype. This is pageable alternative ofData.BasicRepository.findAll().- Parameters:
pageable- pageable query result as page with specified page number and size, shall not benull- Returns:
- all entities found, never returns
null - Throws:
DataException- if the operation has failed
-
slices
ReturnSlicewith all entities of theEtype. This is pageable alternative ofData.BasicRepository.findAll().- Parameters:
pageable- pageable query result as page with specified page number and size, shall not benull- Returns:
- all entities found, never returns
null - Throws:
DataException- if the operation has failed
-