| Line 8... |
Line 8... |
| 8 |
import com.spice.profitmandi.dao.entity.dtr.Api;
|
8 |
import com.spice.profitmandi.dao.entity.dtr.Api;
|
| 9 |
import com.spice.profitmandi.dao.enumuration.dtr.Method;
|
9 |
import com.spice.profitmandi.dao.enumuration.dtr.Method;
|
| 10 |
|
10 |
|
| 11 |
@Repository
|
11 |
@Repository
|
| 12 |
public interface ApiRepository {
|
12 |
public interface ApiRepository {
|
| 13 |
public void persist(Api api)throws ProfitMandiBusinessException;
|
13 |
public void persist(Api api);
|
| 14 |
public List<Api> selectAll(int pageNumber, int pageSize);
|
14 |
public List<Api> selectAll(int pageNumber, int pageSize);
|
| 15 |
public Api selectById(int id) throws ProfitMandiBusinessException;
|
15 |
public Api selectById(int id) throws ProfitMandiBusinessException;
|
| 16 |
public Api selectByName(String name) throws ProfitMandiBusinessException;
|
16 |
public Api selectByName(String name) throws ProfitMandiBusinessException;
|
| - |
|
17 |
public Api selectByUriAndMethod(String uri, Method method) throws ProfitMandiBusinessException;
|
| 17 |
public List<Api> selectByUri(String uri);
|
18 |
public List<Api> selectByUri(String uri);
|
| 18 |
public void deleteById(int id) throws ProfitMandiBusinessException;
|
19 |
public void deleteById(int id) throws ProfitMandiBusinessException;
|
| 19 |
public void updateNameById(String newName, String newUri, Method newMethod, int id) throws ProfitMandiBusinessException;
|
- |
|
| 20 |
}
|
20 |
}
|