Subversion Repositories SmartDukaan

Rev

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

Rev 21723 Rev 23269
Line 8... Line 8...
8
import com.spice.profitmandi.dao.entity.dtr.Shop;
8
import com.spice.profitmandi.dao.entity.dtr.Shop;
9
 
9
 
10
@Repository
10
@Repository
11
public interface ShopRepository {
11
public interface ShopRepository {
12
	public void persist(Shop shop)throws ProfitMandiBusinessException;
12
	public void persist(Shop shop)throws ProfitMandiBusinessException;
13
	public List<Shop> selectAll(int pageNumber, int pageSize);
-
 
14
	public Shop selectById(int id) throws ProfitMandiBusinessException;
13
	public Shop selectById(int id) throws ProfitMandiBusinessException;
15
	public List<Shop> selectByName(String name) throws ProfitMandiBusinessException;
-
 
16
	public List<Shop> selectByRetailerId(int retailerId) throws ProfitMandiBusinessException;
14
	public List<Shop> selectByRetailerId(int retailerId) throws ProfitMandiBusinessException;
17
	public boolean isExistByDocumentId(int documentId);
15
	public boolean isExistByDocumentId(int documentId);
18
	public void deleteById(int id) throws ProfitMandiBusinessException;
16
	public void deleteById(int id) throws ProfitMandiBusinessException;
19
	public void deleteByShopAndRetailerId(int shopId, int retailerId) throws ProfitMandiBusinessException;
17
	public void deleteByShopAndRetailerId(int shopId, int retailerId) throws ProfitMandiBusinessException;
20
}
18
}