package nu.xss.jpa.dao; import java.util.List; public interface Dao { void save(E entity); void merge(E entity); void delete(E entity); E findById(K id); List findAll(); List findAll(int count); List findAll(int count, int offset); List findAll(String sortColumn); List findAll(int count, String sortColumn); List findAll(int count, int offset, String sortColumn); List findAll(String sortColumn, boolean isAscending); List findAll(int count, String sortColumn, boolean isAscending); List findAll(int count, int offset, String sortColumn, boolean isAscending); }