| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import java.util.List;
|
3 |
import java.util.List;
|
| 4 |
import java.util.Map;
|
4 |
import java.util.Map;
|
| 5 |
import java.util.Set;
|
5 |
import java.util.Set;
|
| 6 |
|
6 |
|
| - |
|
7 |
import org.apache.poi.ss.formula.functions.T;
|
| 7 |
import org.springframework.stereotype.Repository;
|
8 |
import org.springframework.stereotype.Repository;
|
| 8 |
|
9 |
|
| 9 |
@Repository
|
10 |
@Repository
|
| 10 |
public interface GenericRepository {
|
11 |
public interface GenericRepository {
|
| 11 |
public <T> void persist(Object object);
|
12 |
public <T> void persist(Object object);
|
| 12 |
|
13 |
|
| 13 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
14 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
| 14 |
|
15 |
|
| 15 |
public <T> long selectCount(Class<T> clazz);
|
16 |
public <T> long selectCount(Class<T> clazz);
|
| - |
|
17 |
public <T> long selectCountByNotNull(Class<T> clazz, String notNullKey);
|
| 16 |
public <T> long selectCountByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
18 |
public <T> long selectCountByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
| 17 |
|
19 |
|
| 18 |
//public <T> List<T> selectAllPaginated(Class<T> clazz, int offset, int limit);
|
20 |
//public <T> List<T> selectAllPaginated(Class<T> clazz, int offset, int limit);
|
| 19 |
public <T> List<T> selectAllOrderByDescPaginated(Class<T> clazz, String orderByDescKey, int offset, int limit);
|
21 |
public <T> List<T> selectAllOrderByDescPaginated(Class<T> clazz, String orderByDescKey, int offset, int limit);
|
| - |
|
22 |
public <T> List<T> selectAllNotNullOrderByDescPaginated(Class<T> clazz, String notNullKey, String orderByDescKey, int offset, int limit);
|
| 20 |
|
23 |
|
| 21 |
public <T> T selectById(Class<T> clazz, int id);
|
24 |
public <T> T selectById(Class<T> clazz, int id);
|
| 22 |
|
25 |
|
| 23 |
public <T> List<T> selectAllByInsOrderByDesc(Class<T> clazz, Map<String, List<?>> listMap, String orderByDescKey);
|
26 |
public <T> List<T> selectAllByInsOrderByDesc(Class<T> clazz, Map<String, List<?>> listMap, String orderByDescKey);
|
| 24 |
public <U, T> List<U> selectAllByInsOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, String orderByDescKey);
|
27 |
public <U, T> List<U> selectAllByInsOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, String orderByDescKey);
|