| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.repository;
|
1 |
package com.spice.profitmandi.dao.repository;
|
| 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 |
import org.springframework.stereotype.Repository;
|
7 |
import org.springframework.stereotype.Repository;
|
| 7 |
|
8 |
|
| 8 |
@Repository
|
9 |
@Repository
|
| 9 |
public interface GenericRepository {
|
10 |
public interface GenericRepository {
|
| 10 |
public <T> void persist(Object object);
|
11 |
public <T> void persist(Object object);
|
| Line 27... |
Line 28... |
| 27 |
|
28 |
|
| 28 |
public <T> List<T> selectAllByEquals(Class<T> clazz, Map<String, Object> objectMap);
|
29 |
public <T> List<T> selectAllByEquals(Class<T> clazz, Map<String, Object> objectMap);
|
| 29 |
public <U, T> List<U> selectAllByEquals(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, Object> objectMap);
|
30 |
public <U, T> List<U> selectAllByEquals(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, Object> objectMap);
|
| 30 |
|
31 |
|
| 31 |
public <T> List<T> selectAllByEqual(Class<T> clazz, String key, Object value);
|
32 |
public <T> List<T> selectAllByEqual(Class<T> clazz, String key, Object value);
|
| - |
|
33 |
|
| - |
|
34 |
public <T> List<T> selectAllByEqualGt(Class<T> clazz, String key, Object value, String gtKey, Object gtValue);
|
| - |
|
35 |
|
| - |
|
36 |
public <T> List<T> selectAllByEqualPaginated(Class<T> clazz, String key, Object value, int offset, int limit);
|
| - |
|
37 |
|
| - |
|
38 |
|
| - |
|
39 |
|
| 32 |
public <U, T> List<U> selectAllByEqual(Class<T> clazz, Class<U> selector, String selectorKey, String key, Object value);
|
40 |
public <U, T> List<U> selectAllByEqual(Class<T> clazz, Class<U> selector, String selectorKey, String key, Object value);
|
| 33 |
|
41 |
|
| 34 |
public <T> List<T> selectAllByInsEquals(Class<T> clazz, Map<String, List<?>> listMap, Map<String, Object> objectMap);
|
42 |
public <T> List<T> selectAllByInsEquals(Class<T> clazz, Map<String, List<?>> listMap, Map<String, Object> objectMap);
|
| 35 |
public <U, T> List<U> selectAllByInsEquals(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, Map<String, Object> objectMap);
|
43 |
public <U, T> List<U> selectAllByInsEquals(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, Map<String, Object> objectMap);
|
| 36 |
|
44 |
|
| Line 44... |
Line 52... |
| 44 |
public <T> List<T> selectAllByEqualsNullNotNullGeLe(Class<T> clazz, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> geParams, Map<String, Object> leParams);
|
52 |
public <T> List<T> selectAllByEqualsNullNotNullGeLe(Class<T> clazz, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> geParams, Map<String, Object> leParams);
|
| 45 |
//public <T> List<T> selectAllByInsEqualsNullNotNullGtGeLtLe(Class<T> clazz, Map<String, List<?>> listMap, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> gtParams, Map<String, Object> geParams, Map<String, Object> ltParams, Map<String, Object> leParams);
|
53 |
//public <T> List<T> selectAllByInsEqualsNullNotNullGtGeLtLe(Class<T> clazz, Map<String, List<?>> listMap, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> gtParams, Map<String, Object> geParams, Map<String, Object> ltParams, Map<String, Object> leParams);
|
| 46 |
|
54 |
|
| 47 |
public <T> List<T> selectAllByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
55 |
public <T> List<T> selectAllByEqualBetween(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2);
|
| 48 |
|
56 |
|
| - |
|
57 |
public <T> long selectCountByEqualsBetween(Class<T> clazz, Map<String, Object> objectParams, String betweenKey, Object betweenValue1, Object betweenValue2);
|
| - |
|
58 |
|
| - |
|
59 |
public <T> List<T> selectAllByEqualBetweenPaginated(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2, int offset, int limit);
|
| - |
|
60 |
|
| 49 |
public <U, T> List<U> selectAllByParams(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> gtParams, Map<String, Object> geParams, Map<String, Object> ltParams, Map<String, Object> leParams);
|
61 |
public <U, T> List<U> selectAllByParams(Class<T> clazz, Class<U> selector, String selectorKey, Map<String, List<?>> listMap, Map<String, Object> objectMap, Set<String> nullParams, Set<String> notNullParams, Map<String, Object> gtParams, Map<String, Object> geParams, Map<String, Object> ltParams, Map<String, Object> leParams);
|
| 50 |
|
62 |
|
| 51 |
public <T> T selectByEquals(Class<T> clazz, Map<String, Object> objectMap);
|
63 |
public <T> T selectByEquals(Class<T> clazz, Map<String, Object> objectMap);
|
| 52 |
|
64 |
|
| 53 |
public <T> List<T> selectAllByEqualsWithOrOrderByDescPaginated(Class<T> clazz, Map<String, Object> objectMap, String orderByKey, int offset, int limit);
|
65 |
public <T> List<T> selectAllByEqualsWithOrOrderByDescPaginated(Class<T> clazz, Map<String, Object> objectMap, String orderByKey, int offset, int limit);
|
| Line 71... |
Line 83... |
| 71 |
|
83 |
|
| 72 |
public <U, T> List<U> selectAll(Class<T> clazz, Class<U> selector, String selectorKey);
|
84 |
public <U, T> List<U> selectAll(Class<T> clazz, Class<U> selector, String selectorKey);
|
| 73 |
public <U, T> List<U> selectAllPaginated(Class<T> clazz, Class<U> selector, String selectorKey, int offset, int limit);
|
85 |
public <U, T> List<U> selectAllPaginated(Class<T> clazz, Class<U> selector, String selectorKey, int offset, int limit);
|
| 74 |
|
86 |
|
| 75 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinEqualPaginated(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, String joinKey, Object joinValue, int offset, int limit);
|
87 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinEqualPaginated(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, String joinKey, Object joinValue, int offset, int limit);
|
| - |
|
88 |
|
| - |
|
89 |
public <T, V> V selectByEqualsWithJoinEqual(Class<T> clazz, Map<String, Object> objectParams, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, String joinKey, Object joinValue);
|
| - |
|
90 |
|
| 76 |
public <T, V, X> List<T> selectAllByEqualBetweenWithJoinJoinEqualPaginated(Class<T> clazz, String equalKey, Object equalValue, String betweenKey,
|
91 |
public <T, V, X> List<T> selectAllByEqualBetweenWithJoinJoinEqualPaginated(Class<T> clazz, String equalKey, Object equalValue, String betweenKey,
|
| 77 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz1,
|
92 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz1,
|
| 78 |
String joinClazz1Key, String joinClazz2Key, Class<X> joinClazz2, String join2Key, Object join2Value, int offset, int limit);
|
93 |
String joinClazz1Key, String joinClazz2Key, Class<X> joinClazz2, String join2Key, Object join2Value, int offset, int limit);
|
| 79 |
|
94 |
|
| 80 |
|
95 |
|
| 81 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinLikesPaginated(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes, int offset, int limit);
|
96 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinLikesPaginated(Class<T> clazz, String key, Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes, int offset, int limit);
|
| 82 |
|
97 |
|
| - |
|
98 |
public <T, V> List<T> selectAllByEqualWithJoinLikesPaginated(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes, int offset, int limit);
|
| - |
|
99 |
|
| - |
|
100 |
public <T, V> List<T> selectAllByEqualGtWithJoinLikesPaginated(Class<T> clazz, String key, Object value, String gtKey, Object gtValue, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes, int offset, int limit);
|
| - |
|
101 |
|
| 83 |
public <T, V> long selectCountByEqualBetweenWithJoinEqual(Class<T> clazz, String key, Object value, String betweenKey,
|
102 |
public <T, V> long selectCountByEqualBetweenWithJoinEqual(Class<T> clazz, String key, Object value, String betweenKey,
|
| 84 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz,
|
103 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz,
|
| 85 |
String joinKey, Object joinValue);
|
104 |
String joinKey, Object joinValue);
|
| 86 |
public <T, V, X> long selectCountByEqualBetweenWithJoinJoinEqual(Class<T> clazz, String equalKey, Object equalValue, String betweenKey,
|
105 |
public <T, V, X> long selectCountByEqualBetweenWithJoinJoinEqual(Class<T> clazz, String equalKey, Object equalValue, String betweenKey,
|
| 87 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz1,
|
106 |
Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz1,
|
| Line 89... |
Line 108... |
| 89 |
|
108 |
|
| 90 |
public <T, V> long selectCountByEqualBetweenWithJoinLikes(Class<T> clazz, String key, Object value,
|
109 |
public <T, V> long selectCountByEqualBetweenWithJoinLikes(Class<T> clazz, String key, Object value,
|
| 91 |
String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey,
|
110 |
String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey, String joinClazzKey,
|
| 92 |
Class<V> joinClazz, Map<String, String> joinLikes);
|
111 |
Class<V> joinClazz, Map<String, String> joinLikes);
|
| 93 |
|
112 |
|
| - |
|
113 |
public <T, V> long selectCountByEqualWithJoinLikes(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes);
|
| - |
|
114 |
|
| - |
|
115 |
public <T, V> long selectCountByEqualGtWithJoinLikes(Class<T> clazz, String key, Object value, String gtKey, Object gtValue, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, String> joinLikes);
|
| - |
|
116 |
|
| 94 |
public <T, V> V selectByEqualWithJoin(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz);
|
117 |
public <T, V> V selectByEqualWithJoin(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz);
|
| 95 |
|
118 |
|
| 96 |
public <T, U, V> List<U> selectAllByEqualWithJoin(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Class<U> selector, String selectorKey);
|
119 |
public <T, U, V> List<U> selectAllByEqualWithJoin(Class<T> clazz, String key, Object value, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Class<U> selector, String selectorKey);
|
| 97 |
//public <T, V> List<T> selectAllByEqualsWithJoin(Class<T> clazz, Map<String, Object> clazzObjectParams, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinClazzObjectParams);
|
120 |
//public <T, V> List<T> selectAllByEqualsWithJoin(Class<T> clazz, Map<String, Object> clazzObjectParams, String clazzJoinKey, String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinClazzObjectParams);
|
| 98 |
|
121 |
|