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.
 
Methods inherited from interface org.domdrides.repository.Repository
add, contains, getAll, getById, remove, size, update
 

Method Detail

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 return
max - the maximum number of entities to return
sortProperty - the property to sort by
ascending - whether or not the sorting is asceding
Returns:
one page of data from this repository


Copyright © 2013. All Rights Reserved.