| 21723 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.repository.dtr;
|
| 21545 |
ashik.ali |
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
|
|
|
5 |
import org.springframework.stereotype.Repository;
|
|
|
6 |
|
|
|
7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 21723 |
ashik.ali |
8 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 21545 |
ashik.ali |
9 |
|
|
|
10 |
/**
|
|
|
11 |
* @author ashikali
|
|
|
12 |
*
|
|
|
13 |
*/
|
|
|
14 |
@Repository
|
|
|
15 |
public interface UserRepository {
|
|
|
16 |
public void persist(User user) throws ProfitMandiBusinessException;
|
|
|
17 |
public User selectById(int id) throws ProfitMandiBusinessException;
|
|
|
18 |
public User selectByEmailId(String emailId) throws ProfitMandiBusinessException;
|
| 23202 |
ashik.ali |
19 |
public User selectBySecondryEmailId(String emailId) throws ProfitMandiBusinessException;
|
| 21545 |
ashik.ali |
20 |
public User selectByMobileNumber(String mobileNumber) throws ProfitMandiBusinessException;
|
| 22980 |
ashik.ali |
21 |
public User selectByEmailIdOrMobileNumber(String emailIdOrMobileNumber) throws ProfitMandiBusinessException;
|
| 22352 |
ashik.ali |
22 |
public List<Integer> selectIdAll();
|
| 21545 |
ashik.ali |
23 |
public boolean isExistByMobileNumber(String mobileNumber);
|
|
|
24 |
public boolean isExistByEmailId(String emailId);
|
| 23202 |
ashik.ali |
25 |
public boolean isExistBySecondryEmailId(String emailId);
|
| 21545 |
ashik.ali |
26 |
public List<User> selectAll(int pageNumber, int pageSize);
|
|
|
27 |
}
|