Subversion Repositories SmartDukaan

Rev

Rev 23781 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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