?? userserviceimpl.java
字號(hào):
package org.itfuture.www.service.impl;
import org.itfuture.www.dao.UserDao;
import org.itfuture.www.dao.impl.UserDaoImpl;
import org.itfuture.www.po.Account;
import org.itfuture.www.po.Lineitem;
import org.itfuture.www.po.Orders;
import org.itfuture.www.po.Orderstatus;
import org.itfuture.www.po.Profile;
import org.itfuture.www.po.Signon;
import org.itfuture.www.service.UserService;
//服務(wù)接口的實(shí)現(xiàn)類,調(diào)用的全是UserDao中的方法
public class UserServiceImpl implements UserService {
public UserDao getUserDao() {
return new UserDaoImpl();
}
public Signon checkOut(String name, String password) {
return this.getUserDao().checkOut(name, password);
}
public boolean regist(Signon signon, Account account, Profile profile) {
return this.getUserDao().regist(signon, account, profile);
}
public boolean addOrder(Orders order,Signon signon) {
return this.getUserDao().addOrder(order, signon);
}
public String getValue() {
return this.getUserDao().getValue();
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -