| 21723 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.repository.dtr;
|
| 21545 |
ashik.ali |
2 |
|
| 33247 |
ranu |
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
4 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 33305 |
ranu |
5 |
import com.spice.profitmandi.dao.model.VerifiedB2CUsersModel;
|
| 33247 |
ranu |
6 |
import org.springframework.stereotype.Repository;
|
|
|
7 |
|
| 33305 |
ranu |
8 |
import java.time.LocalDate;
|
| 21545 |
ashik.ali |
9 |
import java.util.List;
|
| 23781 |
ashik.ali |
10 |
import java.util.Set;
|
| 21545 |
ashik.ali |
11 |
|
|
|
12 |
/**
|
|
|
13 |
* @author ashikali
|
|
|
14 |
*
|
|
|
15 |
*/
|
|
|
16 |
@Repository
|
|
|
17 |
public interface UserRepository {
|
| 23269 |
ashik.ali |
18 |
public void persist(User user);
|
| 24159 |
tejbeer |
19 |
|
| 21545 |
ashik.ali |
20 |
public User selectById(int id) throws ProfitMandiBusinessException;
|
| 24159 |
tejbeer |
21 |
|
| 21545 |
ashik.ali |
22 |
public User selectByEmailId(String emailId) throws ProfitMandiBusinessException;
|
| 25366 |
tejbeer |
23 |
|
|
|
24 |
public List<User> selectAllByEmails(List<String> emails,int offset, int limit);
|
| 24159 |
tejbeer |
25 |
|
| 33247 |
ranu |
26 |
public List<User> selectAllByEmailIds(List<String> emails) throws ProfitMandiBusinessException;
|
| 25383 |
tejbeer |
27 |
|
| 23202 |
ashik.ali |
28 |
public User selectBySecondryEmailId(String emailId) throws ProfitMandiBusinessException;
|
| 24159 |
tejbeer |
29 |
|
| 21545 |
ashik.ali |
30 |
public User selectByMobileNumber(String mobileNumber) throws ProfitMandiBusinessException;
|
| 24159 |
tejbeer |
31 |
|
| 22980 |
ashik.ali |
32 |
public User selectByEmailIdOrMobileNumber(String emailIdOrMobileNumber) throws ProfitMandiBusinessException;
|
| 24159 |
tejbeer |
33 |
|
| 22352 |
ashik.ali |
34 |
public List<Integer> selectIdAll();
|
| 24159 |
tejbeer |
35 |
|
| 33247 |
ranu |
36 |
public List<User> selectAllByIds(Set<Integer> ids) throws ProfitMandiBusinessException;
|
| 24159 |
tejbeer |
37 |
|
| 21545 |
ashik.ali |
38 |
public boolean isExistByMobileNumber(String mobileNumber);
|
| 24159 |
tejbeer |
39 |
|
| 21545 |
ashik.ali |
40 |
public boolean isExistByEmailId(String emailId);
|
| 24159 |
tejbeer |
41 |
|
| 23202 |
ashik.ali |
42 |
public boolean isExistBySecondryEmailId(String emailId);
|
| 24159 |
tejbeer |
43 |
|
| 23781 |
ashik.ali |
44 |
public List<User> selectAll();
|
| 33305 |
ranu |
45 |
|
|
|
46 |
public List<VerifiedB2CUsersModel> selectAllVerifiedUsers(LocalDate startDate, LocalDate endDate);
|
| 21545 |
ashik.ali |
47 |
}
|