?? orderitemmanager.java
字號:
package ydh.business;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;
import ydh.item.Item;
import ydh.item.ItemDAO;
import ydh.product.ProductDAO;
import ydh.user.User;
import ydh.user.UserDAO;
public class OrderitemManager {
ItemDAO dao;
public ItemDAO getDao() {
return dao;
}
public void setDao(ItemDAO dao) {
this.dao = dao;
}
public void save(Item i){
getDao().save(i);
}
public List order(String name){
List l=getDao().order(name);
return l;
}
// public List findid(String id){
// List l=getDao().findid(id);
// return l;
// }
public List findAll(){
List list=getDao().findAll();
return list;
}
public List send(String id){
return getDao().send(id);
}
public Item send1(String id){
return getDao().send1(id);
}
public void update(Item i){
getDao().update(i);
}
public List findAll(int firstRow, int maxResults){
List list=getDao().findAll(firstRow, maxResults);
return list;
}
public List findAll1(){
List list=getDao().findAll1();
return list;
}
public List findAll1(int firstRow, int maxResults){
List list=getDao().findAll1(firstRow, maxResults);
return list;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -