userserviceimpl.java

来自「采用最新Struts2+Hibernate架构开发」· Java 代码 · 共 37 行

JAVA
37
字号
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;
//服务接口的实现类,调用的全是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();
	}
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?