br.com.arsmachina.tapestrycrud.grid
Interface PagedSearch<T>

Type Parameters:
T - the type of the elements returned.

public interface PagedSearch<T>

Interface that defines a search that can be carried on in a paged fashion.

Author:
Thiago H. de Paula Figueiredo

Method Summary
 int count()
          Return the number of available objects to be returned by the search.
 List<T> search(int firstIndex, int maximumResults, br.com.arsmachina.dao.SortCriterion... sortingConstraints)
          Performs the search.
 

Method Detail

search

List<T> search(int firstIndex,
               int maximumResults,
               br.com.arsmachina.dao.SortCriterion... sortingConstraints)
Performs the search.

Parameters:
firstIndex - an int with the index of the first object to be returned. The first object has index 0.
maximumResults - an int with the maximum number of objects to be returned.
sortingConstraints - an SortCriterion array used to define how the returned list will be sorted.
Returns:
a List of T.

count

int count()
Return the number of available objects to be returned by the search.

Returns:
an int.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.