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