Subversion Repositories SmartDukaan

Rev

Rev 21723 | Rev 23781 | 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;
4
 
5
import org.springframework.stereotype.Repository;
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
21723 ashik.ali 8
import com.spice.profitmandi.dao.entity.dtr.Api;
9
import com.spice.profitmandi.dao.enumuration.dtr.Method;
21545 ashik.ali 10
 
11
@Repository
12
public interface ApiRepository {
23269 ashik.ali 13
	public void persist(Api api);
21545 ashik.ali 14
	public List<Api> selectAll(int pageNumber, int pageSize);
15
	public Api selectById(int id) throws ProfitMandiBusinessException;
16
	public Api selectByName(String name) throws ProfitMandiBusinessException;
23269 ashik.ali 17
	public Api selectByUriAndMethod(String uri, Method method) throws ProfitMandiBusinessException;
21545 ashik.ali 18
	public List<Api> selectByUri(String uri);
19
	public void deleteById(int id) throws ProfitMandiBusinessException;
20
}