Rev 33247 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.repository.dtr;import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;import com.spice.profitmandi.dao.entity.dtr.User;import com.spice.profitmandi.dao.model.VerifiedB2CUsersModel;import org.springframework.stereotype.Repository;import java.time.LocalDate;import java.util.List;import java.util.Set;/*** @author ashikali**/@Repositorypublic interface UserRepository {public void persist(User user);public User selectById(int id) throws ProfitMandiBusinessException;public User selectByEmailId(String emailId) throws ProfitMandiBusinessException;public List<User> selectAllByEmails(List<String> emails,int offset, int limit);public List<User> selectAllByEmailIds(List<String> emails) throws ProfitMandiBusinessException;public User selectBySecondryEmailId(String emailId) throws ProfitMandiBusinessException;public User selectByMobileNumber(String mobileNumber) throws ProfitMandiBusinessException;public User selectByEmailIdOrMobileNumber(String emailIdOrMobileNumber) throws ProfitMandiBusinessException;public List<Integer> selectIdAll();public List<User> selectAllByIds(Set<Integer> ids) throws ProfitMandiBusinessException;public boolean isExistByMobileNumber(String mobileNumber);public boolean isExistByEmailId(String emailId);public boolean isExistBySecondryEmailId(String emailId);public List<User> selectAll();public List<VerifiedB2CUsersModel> selectAllVerifiedUsers(LocalDate startDate, LocalDate endDate);}