Rev 21723 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.repository;import java.util.List;import org.springframework.stereotype.Repository;import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;import com.spice.profitmandi.dao.entity.Shop;@Repositorypublic interface ShopRepository {public void persist(Shop shop)throws ProfitMandiBusinessException;public List<Shop> selectAll(int pageNumber, int pageSize);public Shop selectById(int id) throws ProfitMandiBusinessException;public List<Shop> selectByName(String name) throws ProfitMandiBusinessException;public List<Shop> selectByRetailerId(int retailerId) throws ProfitMandiBusinessException;public boolean isExistByDocumentId(int documentId);public void deleteById(int id) throws ProfitMandiBusinessException;public void deleteByShopAndRetailerId(int shopId, int retailerId) throws ProfitMandiBusinessException;}