Subversion Repositories SmartDukaan

Rev

Rev 21765 | Rev 22352 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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;
19
	public User selectByMobileNumber(String mobileNumber) throws ProfitMandiBusinessException;
20
	public List<Object[]> selectIdAndSololicUserId();
21
	public boolean isExistByMobileNumber(String mobileNumber);
22
	public boolean isExistByEmailId(String emailId);
23
	public List<User> selectAll(int pageNumber, int pageSize);
24
}