| 23781 |
ashik.ali |
1 |
package com.spice.profitmandi.dao.repository.dtr;
|
|
|
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
import java.util.Set;
|
|
|
5 |
|
|
|
6 |
import org.springframework.stereotype.Repository;
|
|
|
7 |
|
|
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
|
|
9 |
import com.spice.profitmandi.dao.entity.dtr.Role;
|
|
|
10 |
|
|
|
11 |
@Repository
|
|
|
12 |
public interface RoleRepository {
|
|
|
13 |
public void persist(Role role);
|
|
|
14 |
public Role selectById(int id) throws ProfitMandiBusinessException;
|
|
|
15 |
public Role selectByName(String name) throws ProfitMandiBusinessException;
|
|
|
16 |
public List<Role> selectByIds(Set<Integer> ids);
|
|
|
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 |
}
|