| 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;
|
3 |
import java.util.List;
|
| - |
|
4 |
import java.util.Set;
|
| 4 |
|
5 |
|
| 5 |
import org.springframework.stereotype.Repository;
|
6 |
import org.springframework.stereotype.Repository;
|
| 6 |
|
7 |
|
| 7 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
8 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 8 |
import com.spice.profitmandi.dao.entity.dtr.Api;
|
9 |
import com.spice.profitmandi.dao.entity.dtr.Api;
|
| 9 |
import com.spice.profitmandi.dao.enumuration.dtr.Method;
|
10 |
import com.spice.profitmandi.dao.enumuration.dtr.Method;
|
| 10 |
|
11 |
|
| 11 |
@Repository
|
12 |
@Repository
|
| 12 |
public interface ApiRepository {
|
13 |
public interface ApiRepository {
|
| 13 |
public void persist(Api api);
|
14 |
public void persist(Api api);
|
| 14 |
public List<Api> selectAll(int pageNumber, int pageSize);
|
15 |
public List<Api> selectAll(int offset, int limit);
|
| 15 |
public Api selectById(int id) throws ProfitMandiBusinessException;
|
16 |
public Api selectById(int id) throws ProfitMandiBusinessException;
|
| 16 |
public Api selectByName(String name) throws ProfitMandiBusinessException;
|
17 |
public List<Api> selectByIds(Set<Integer> ids);
|
| 17 |
public Api selectByUriAndMethod(String uri, Method method) throws ProfitMandiBusinessException;
|
- |
|
| 18 |
public List<Api> selectByUri(String uri);
|
18 |
public List<Api> selectAll();
|
| 19 |
public void deleteById(int id) throws ProfitMandiBusinessException;
|
19 |
public void deleteById(int id) throws ProfitMandiBusinessException;
|
| - |
|
20 |
public boolean isExistByName(String name);
|
| - |
|
21 |
public boolean isExistByUriAndMethod(String uri, Method method);
|
| 20 |
}
|
22 |
}
|