Subversion Repositories SmartDukaan

Rev

Rev 23269 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21723 ashik.ali 1
package com.spice.profitmandi.dao.repository.dtr;
21545 ashik.ali 2
 
3
import java.util.List;
23781 ashik.ali 4
import java.util.Set;
21545 ashik.ali 5
 
6
import org.springframework.stereotype.Repository;
7
 
8
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
21723 ashik.ali 9
import com.spice.profitmandi.dao.entity.dtr.Api;
10
import com.spice.profitmandi.dao.enumuration.dtr.Method;
21545 ashik.ali 11
 
12
@Repository
13
public interface ApiRepository {
23269 ashik.ali 14
	public void persist(Api api);
23781 ashik.ali 15
	public List<Api> selectAll(int offset, int limit);
21545 ashik.ali 16
	public Api selectById(int id) throws ProfitMandiBusinessException;
23781 ashik.ali 17
	public List<Api> selectByIds(Set<Integer> ids);
18
	public List<Api> selectAll();
21545 ashik.ali 19
	public void deleteById(int id) throws ProfitMandiBusinessException;
23781 ashik.ali 20
	public boolean isExistByName(String name);
21
	public boolean isExistByUriAndMethod(String uri, Method method);
21545 ashik.ali 22
}