Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.repository;
2
 
3
import java.util.List;
4
 
5
import org.springframework.stereotype.Repository;
6
 
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.dao.entity.Api;
9
import com.spice.profitmandi.dao.enumuration.Method;
10
 
11
@Repository
12
public interface ApiRepository {
13
	public void persist(Api api)throws ProfitMandiBusinessException;
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;
17
	public List<Api> selectByUri(String uri);
18
	public void deleteById(int id) throws ProfitMandiBusinessException;
19
	public void updateNameById(String newName, String newUri, Method newMethod, int id) throws ProfitMandiBusinessException;
20
}