📄 productdao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -