improve manager paging api

This commit is contained in:
Sebastian Sdorra
2011-06-09 21:46:22 +02:00
parent d5b387bd97
commit a99d7e6b1e
5 changed files with 81 additions and 25 deletions

View File

@@ -38,6 +38,7 @@ package sonia.scm;
import java.io.IOException;
import java.util.Collection;
import java.util.Comparator;
/**
*
@@ -86,15 +87,26 @@ public interface Manager<T extends ModelObject, E extends Exception>
* Method description
*
*
*
* @param sortby
* @param desc
* @param start
* @param limit
*
* @return
* @since 1.4
*/
public Collection<T> getAll(String sortby, boolean desc, int start,
int limit);
public Collection<T> getAll(int start, int limit);
/**
* Method description
*
*
*
*
* @param comparator
* @param start
* @param limit
*
* @return
* @since 1.4
*/
public Collection<T> getAll(Comparator<T> comparator, int start, int limit);
}