org.domdrides.repository
Interface PageableRepository<EntityType extends Entity<IdType>,IdType extends Serializable>
- All Superinterfaces:
- Repository<EntityType,IdType>
public interface PageableRepository<EntityType extends Entity<IdType>,IdType extends Serializable>
- extends Repository<EntityType,IdType>
A useful interface for repositories which support "paging."
- Since:
- 1.1
|
Method Summary |
List<EntityType> |
list(int first,
int max,
String sortProperty,
boolean ascending)
Returns one page of data from this repository. |
list
List<EntityType> list(int first,
int max,
String sortProperty,
boolean ascending)
- Returns one page of data from this repository.
- Parameters:
first - the first entity to returnmax - the maximum number of entities to returnsortProperty - the property to sort byascending - whether or not the sorting is asceding
- Returns:
- one page of data from this repository
Copyright © 2013. All Rights Reserved.