Rev 21545 | 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.dtr;import java.util.List;import org.springframework.stereotype.Repository;import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;import com.spice.profitmandi.dao.entity.dtr.Brand;@Repositorypublic interface BrandRepository {public void persist(Brand brand)throws ProfitMandiBusinessException;public List<Brand> selectAll(int pageNumber, int pageSize);public Brand selectById(int id) throws ProfitMandiBusinessException;public Brand selectByName(String name) throws ProfitMandiBusinessException;public Brand selectByIdAndName(int id, String name) throws ProfitMandiBusinessException;public boolean isExistByName(String name);public void deleteById(int id) throws ProfitMandiBusinessException;}