productdao.java

来自「shoppingCar 购物车」· Java 代码 · 共 42 行

JAVA
42
字号
package com.tarena.shoppingcar.dao;import java.util.List;import com.tarena.shoppingcar.entity.Product;import com.tarena.shoppingcar.factory.ProductException;public interface ProductDao {	/**	 * 增加	 */	public void save(Product product) throws ProductException;	/**	 * 删除	 */	public void remove(int id) throws ProductException;	/**	 * 查找全部商品	 */	public List<Product> findAll(Product product) throws ProductException;	/**	 * 更新	 */	public void modify(Product product) throws ProductException;	/**	 * 根据id查询商品	 */	public Product findById(int id);	/**	 * 查询总的商品条数	 */	public int findNum();	/**	 * 按页查询	 */	public List<Product> findByPage(int StartRow,int rowPerPage);	/**	 * 根据order_id查找一组商品	 */	public List<Product> findByOrderID(int id);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?