| Line 6... |
Line 6... |
| 6 |
|
6 |
|
| 7 |
import javax.swing.SortOrder;
|
7 |
import javax.swing.SortOrder;
|
| 8 |
|
8 |
|
| 9 |
import org.springframework.stereotype.Repository;
|
9 |
import org.springframework.stereotype.Repository;
|
| 10 |
|
10 |
|
| 11 |
import com.spice.profitmandi.dao.entity.transaction.LineItemImei;
|
- |
|
| 12 |
|
- |
|
| 13 |
@Repository
|
11 |
@Repository
|
| 14 |
public interface GenericRepository {
|
12 |
public interface GenericRepository {
|
| 15 |
public <T> void persist(Object object);
|
13 |
public <T> void persist(Object object);
|
| 16 |
|
14 |
|
| 17 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
15 |
public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
|
| Line 24... |
Line 22... |
| 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);
|
| 28 |
public <T> List<T> selectAllNotNullOrderByDescPaginated(Class<T> clazz, String notNullKey, String orderByDescKey, int offset, int limit);
|
26 |
public <T> List<T> selectAllNotNullOrderByDescPaginated(Class<T> clazz, String notNullKey, String orderByDescKey, int offset, int limit);
|
| - |
|
27 |
public <T> List<T> selectAllNotNullOrderByDesc(Class<T> clazz, String notNullKey, String orderByDescKey);
|
| 29 |
|
28 |
|
| 30 |
public <T> T selectById(Class<T> clazz, int id);
|
29 |
public <T> T selectById(Class<T> clazz, int id);
|
| 31 |
|
30 |
|
| 32 |
public <U, T> List<U> selectAllDistinctOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, String orderByDescKey);
|
31 |
public <U, T> List<U> selectAllDistinctOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, String orderByDescKey);
|
| 33 |
public <U, T> List<U> selectAllDistinctByNotInOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listParams, String orderByDescKey);
|
32 |
public <U, T> List<U> selectAllDistinctByNotInOrderByDesc(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listParams, String orderByDescKey);
|