blob: 317e291c0b719d6160edc08864007e60915103b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package nu.xss.jpa.dao;
import java.util.List;
public interface Dao<E, K> {
void save(E entity);
void merge(E entity);
void delete(E entity);
E findById(K id);
List<E> findAll();
List<E> findAll(int count);
List<E> findAll(int count, int offset);
List<E> findAll(String sortColumn);
List<E> findAll(int count, String sortColumn);
List<E> findAll(int count, int offset, String sortColumn);
List<E> findAll(String sortColumn, boolean isAscending);
List<E> findAll(int count, String sortColumn, boolean isAscending);
List<E> findAll(int count, int offset, String sortColumn, boolean isAscending);
}
|