Subversion Repositories SmartDukaan

Rev

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

Rev 21723 Rev 23269
Line 7... Line 7...
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
7
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
8
import com.spice.profitmandi.dao.entity.dtr.Brand;
8
import com.spice.profitmandi.dao.entity.dtr.Brand;
9
 
9
 
10
@Repository
10
@Repository
11
public interface BrandRepository {
11
public interface BrandRepository {
12
	public void persist(Brand brand)throws ProfitMandiBusinessException;
12
	public void persist(Brand brand);
13
	public List<Brand> selectAll(int pageNumber, int pageSize);
13
	public List<Brand> selectAll(int pageNumber, int pageSize);
14
	public Brand selectById(int id) throws ProfitMandiBusinessException;
14
	public Brand selectById(int id) throws ProfitMandiBusinessException;
15
	public Brand selectByName(String name) throws ProfitMandiBusinessException;
-
 
16
	public Brand selectByIdAndName(int id, String name) throws ProfitMandiBusinessException;
15
	public Brand selectByIdAndName(int id, String name) throws ProfitMandiBusinessException;
17
	public boolean isExistByName(String name);
-
 
18
	public void deleteById(int id) throws ProfitMandiBusinessException;
-
 
19
}
16
}