⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userbusinessimpl.java

📁 企业内部培训系统
💻 JAVA
字号:
package cn.com.tarena.ecport.biz.impl;import java.util.List;import org.hibernate.HibernateException;import business.impl.test.HibernateUtil;import cn.com.tarena.ecport.biz.IUserBusiness;import cn.com.tarena.ecport.dao.IOrdersDAO;import cn.com.tarena.ecport.dao.IUserDAO;import cn.com.tarena.ecport.dao.factory.DAOFactory;import cn.com.tarena.ecport.exception.ECPortException;import cn.com.tarena.ecport.pojo.ContactInfo;import cn.com.tarena.ecport.pojo.User;public class UserBusinessImpl implements IUserBusiness {	public void deleteUser(User user) throws ECPortException {		// TODO Auto-generated method stub	}	public List<User> findAllUsers() throws ECPortException {		// TODO Auto-generated method stub		return null;	}	public ContactInfo getContactInfoByUserid(String userid)			throws ECPortException {		// TODO Auto-generated method stub		return null;	}	public User getUserById(String userid) throws ECPortException {		// TODO Auto-generated method stub		return null;	}	public boolean hasUser(String userid) throws ECPortException {		// TODO Auto-generated method stub		return false;	}	public void updateContactInfo(ContactInfo contactInfo)			throws ECPortException {		// TODO Auto-generated method stub	}	public void updateUserInfo(User user, ContactInfo contactInfo)			throws ECPortException {		// TODO Auto-generated method stub	}	public void userRegister(User user, ContactInfo contactInfo)			throws ECPortException {		// TODO Auto-generated method stub	}		// 自己写2个方法把user和userinfo分开注册	public void registerUser(User pojo){		IUserDAO ob = (IUserDAO) DAOFactory.getDAO(IUserDAO.class				.getName());		try {			HibernateUtil.getSessionFactory().getCurrentSession()					.beginTransaction();			ob.registerUser(pojo);			HibernateUtil.getSessionFactory().getCurrentSession()					.getTransaction().commit();		} catch (HibernateException e) {			HibernateUtil.getSessionFactory().getCurrentSession()					.getTransaction().rollback();			e.printStackTrace();		}			}		public void registerUserinfo(ContactInfo contactPojo){		IUserDAO ob = (IUserDAO) DAOFactory.getDAO(IUserDAO.class				.getName());		try {			HibernateUtil.getSessionFactory().getCurrentSession()					.beginTransaction();			ob.registerUserinfo(contactPojo);			HibernateUtil.getSessionFactory().getCurrentSession()					.getTransaction().commit();		} catch (HibernateException e) {			HibernateUtil.getSessionFactory().getCurrentSession()					.getTransaction().rollback();			e.printStackTrace();		}							}		}

⌨️ 快捷键说明

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