📄 goodsdao.java
字号:
package com.eshop.dao;
import java.sql.SQLException;
import java.util.Vector;
import com.eshop.dto.Goods;
/*返回值Vector中的元素为一个类对象 */
public interface GoodsDao {
public int insert(Goods g) throws SQLException;
public int update(Goods g) throws SQLException;
public int delete(int id) throws SQLException;
public Vector selectAll() throws SQLException; //输出所有
public Vector FindByBrand(String brand) throws SQLException; //按品牌查找
public Vector FindByType(String type) throws SQLException; //按型号查找
public Vector FindByPrice(double from,double to) throws SQLException;//按价格查找
public Goods FindById(int id) throws SQLException; //按编号查询
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -