| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.dao.repository;
|
1 |
package com.spice.profitmandi.dao.repository;
|
| 2 |
|
2 |
|
| - |
|
3 |
import org.springframework.stereotype.Repository;
|
| - |
|
4 |
import org.springframework.util.MultiValueMap;
|
| - |
|
5 |
|
| - |
|
6 |
import javax.persistence.criteria.CriteriaBuilder;
|
| - |
|
7 |
import javax.persistence.criteria.Predicate;
|
| - |
|
8 |
import javax.persistence.criteria.Root;
|
| - |
|
9 |
import javax.swing.*;
|
| 3 |
import java.time.LocalDateTime;
|
10 |
import java.time.LocalDateTime;
|
| 4 |
import java.util.AbstractMap.SimpleEntry;
|
11 |
import java.util.AbstractMap.SimpleEntry;
|
| 5 |
import java.util.List;
|
12 |
import java.util.List;
|
| 6 |
import java.util.Map;
|
13 |
import java.util.Map;
|
| 7 |
import java.util.Set;
|
14 |
import java.util.Set;
|
| 8 |
|
15 |
|
| 9 |
import javax.persistence.criteria.CriteriaBuilder;
|
- |
|
| 10 |
import javax.persistence.criteria.Predicate;
|
- |
|
| 11 |
import javax.persistence.criteria.Root;
|
- |
|
| 12 |
import javax.swing.SortOrder;
|
- |
|
| 13 |
|
- |
|
| 14 |
import org.springframework.stereotype.Repository;
|
- |
|
| 15 |
import org.springframework.util.MultiValueMap;
|
- |
|
| 16 |
|
- |
|
| 17 |
@Repository
|
16 |
@Repository
|
| 18 |
public interface GenericRepository {
|
17 |
public interface GenericRepository {
|
| 19 |
public final String IS_NULL = "IS_NULL";
|
18 |
public final String IS_NULL = "IS_NULL";
|
| 20 |
public final String IS_NOT_NULL = "IS_NOT_NULL";
|
19 |
public final String IS_NOT_NULL = "IS_NOT_NULL";
|
| 21 |
|
20 |
|
| Line 191... |
Line 190... |
| 191 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinEqualOrderByDescPaginated(Class<T> clazz, String key,
|
190 |
public <T, V> List<T> selectAllByEqualBetweenWithJoinEqualOrderByDescPaginated(Class<T> clazz, String key,
|
| 192 |
Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey,
|
191 |
Object value, String betweenKey, Object betweenValue1, Object betweenValue2, String clazzJoinKey,
|
| 193 |
String joinClazzKey, Class<V> joinClazz, String joinKey, Object joinValue, String orderByDescKey,
|
192 |
String joinClazzKey, Class<V> joinClazz, String joinKey, Object joinValue, String orderByDescKey,
|
| 194 |
int offset, int limit);
|
193 |
int offset, int limit);
|
| 195 |
|
194 |
|
| 196 |
public <T, V> V selectByEqualsWithJoinEqual(Class<T> clazz, Map<String, Object> objectParams, String clazzJoinKey,
|
195 |
public <T, V> List<V> selectByEqualsWithJoinEqual(Class<T> clazz, Map<String, Object> objectParams, String clazzJoinKey,
|
| 197 |
String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinEqualsMap);
|
196 |
String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinEqualsMap);
|
| 198 |
|
197 |
|
| 199 |
public <T, V> List<V> selectAllByEqualsWithJoinEqual(Class<T> clazz, Map<String, Object> objectParams, String clazzJoinKey,
|
198 |
public <T, V> List<V> selectAllByEqualsWithJoinEqual(Class<T> clazz, Map<String, Object> objectParams, String clazzJoinKey,
|
| 200 |
String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinEqualsMap);
|
199 |
String joinClazzKey, Class<V> joinClazz, Map<String, Object> joinEqualsMap);
|
| 201 |
|
200 |
|
| 202 |
public <T, V, X> List<T> selectAllByEqualBetweenWithJoinJoinEqualOrderByDescPaginated(Class<T> clazz,
|
201 |
public <T, V, X> List<T> selectAllByEqualBetweenWithJoinJoinEqualOrderByDescPaginated(Class<T> clazz,
|