Subversion Repositories SmartDukaan

Rev

Rev 23781 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23781 ashik.ali 1
package com.spice.profitmandi.dao.repository.dtr;
2
 
33248 ranu 3
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
4
import com.spice.profitmandi.dao.entity.dtr.Role;
5
import org.springframework.stereotype.Repository;
6
 
23781 ashik.ali 7
import java.util.List;
8
import java.util.Set;
9
 
10
@Repository
11
public interface RoleRepository {
12
	public void persist(Role role);
13
	public Role selectById(int id) throws ProfitMandiBusinessException;
14
	public Role selectByName(String name) throws ProfitMandiBusinessException;
33248 ranu 15
 
16
    public List<Role> selectByIds(Set<Integer> ids) throws ProfitMandiBusinessException;
23781 ashik.ali 17
	public List<Role> selectAll();
18
	public boolean isExistByName(String name);
19
	public void deleteById(int id) throws ProfitMandiBusinessException;
20
	public List<Integer> selectByNames(Set<String> names);
21
}