| 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 javax.persistence.criteria.CriteriaQuery;
|
- |
|
| 8 |
import javax.swing.SortOrder;
|
7 |
import javax.swing.SortOrder;
|
| 9 |
|
8 |
|
| 10 |
import org.apache.poi.ss.formula.functions.T;
|
- |
|
| 11 |
import org.hibernate.query.Query;
|
- |
|
| 12 |
import org.springframework.stereotype.Repository;
|
9 |
import org.springframework.stereotype.Repository;
|
| 13 |
|
10 |
|
| 14 |
@Repository
|
11 |
@Repository
|
| 15 |
public interface GenericRepository {
|
12 |
public interface GenericRepository {
|
| 16 |
public <T> void persist(Object object);
|
13 |
public <T> void persist(Object object);
|
| Line 18... |
Line 15... |
| 18 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
15 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
| 19 |
|
16 |
|
| 20 |
public <T> long selectCount(Class<T> clazz);
|
17 |
public <T> long selectCount(Class<T> clazz);
|
| 21 |
public <T> long selectCountByNotNull(Class<T> clazz, String notNullKey);
|
18 |
public <T> long selectCountByNotNull(Class<T> clazz, String notNullKey);
|
| 22 |
public <T> long selectCountByEqual(Class<T> clazz, String key, Object value);
|
19 |
public <T> long selectCountByEqual(Class<T> clazz, String key, Object value);
|
| - |
|
20 |
public <T> long selectCountByEquals(Class<T> clazz, Map<String, Object> objectParams);
|
| 23 |
public <T> long selectCountByIn(Class<T> clazz, String key, List<?> in);
|
21 |
public <T> long selectCountByIn(Class<T> clazz, String key, List<?> in);
|
| 24 |
public <T> long selectCountByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
22 |
public <T> long selectCountByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
| 25 |
|
23 |
|
| 26 |
//public <T> List<T> selectAllPaginated(Class<T> clazz, int offset, int limit);
|
24 |
//public <T> List<T> selectAllPaginated(Class<T> clazz, int offset, int limit);
|
| 27 |
public <T> List<T> selectAllOrderByDescPaginated(Class<T> clazz, String orderByDescKey, int offset, int limit);
|
25 |
public <T> List<T> selectAllOrderByDescPaginated(Class<T> clazz, String orderByDescKey, int offset, int limit);
|