📄 goodsbiz.java
字号:
package y2.yxb.hibernatebiz;
import java.util.List;
import y2.yxb.entity.Goods;
import y2.yxb.hebernatedao.IGoodsDAO;
public class GoodsBiz implements IGoodsBiz {
IGoodsDAO goodDaoImpl;
public void addGoods(Goods item) {
// TODO Auto-generated method stub
goodDaoImpl.add(item);
}
public List getOnSaleGoodsList() {
// TODO Auto-generated method stub
Goods good=new Goods();
return goodDaoImpl.search(good);
}
public IGoodsDAO getGoodDaoImpl() {
return goodDaoImpl;
}
public void setGoodDaoImpl(IGoodsDAO goodDaoImpl) {
this.goodDaoImpl = goodDaoImpl;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -