package com.github.aureliano.verbum_domini.dao;

import java.io.Serializable;
import java.util.List;

import com.github.aureliano.verbum_domini.web.ServiceParams;

public interface IDao<T> {

	public abstract List<Pagination<T>> list();
	
	public abstract List<Pagination<T>> list(T filter);
	
	public abstract List<Pagination<T>> list(T filter, ServiceParams params);
	
	public abstract T load(Serializable id);
}
package com.github.aureliano.verbum_domini.dao;

import java.io.Serializable;

import com.github.aureliano.verbum_domini.web.ServiceParams;

public interface IDao<T> {

	public static final Integer PAGE_ELEMENTS = 50;

	public abstract Pagination<T> list();
	
	public abstract Pagination<T> list(T filter);
	
	public abstract Pagination<T> list(T filter, ServiceParams params);
	
	public abstract T load(Serializable id);
}
Use pagination object as return type for collection returning methods.
Use pagination object as return type for collection returning methods.
