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

📄 unitsmanagerfactoryimpl.java

📁 这是本人曾经在公司里用的,内部开发框架,基于struts+hibernate今天分享给大家
💻 JAVA
字号:
/**
 * 
 */
package cn.bway.foreigntrade.operation.units.impl;

import cn.bway.common.BwayHibernateException;
import cn.bway.common.impl.BaseManager;
import cn.bway.common.vo.QueryVO;
import cn.bway.myoffice.merchant.model.Merchant;
import cn.bway.foreigntrade.operation.units.model.Units;

/**
 * @author Kson
 *
 */
public class UnitsManagerFactoryImpl extends BaseManager implements
		UnitsManager {

	public Object findAllUnits(QueryVO qvo) throws BwayHibernateException {
		// TODO Auto-generated method stub
		return null;
	}
	public Object findAllUnits1(QueryVO qvo) throws BwayHibernateException {
		// TODO Auto-generated method stub
		return unitsdaofactory.getUnitsDAO().findAllUnits1(qvo);
	}
	public void deleteUnits(String id) throws BwayHibernateException {
		// TODO Auto-generated method stub
		unitsdaofactory.getUnitsDAO().removeObject(Units.class, id);
	}
	public Object getUnits(String id) throws BwayHibernateException {
		// TODO Auto-generated method stub
		return unitsdaofactory.getUnitsDAO().getObject(Units.class, id);
	}

	public void addUnits(Units units) throws BwayHibernateException {
		// TODO Auto-generated method stub
		unitsdaofactory.getUnitsDAO().saveObject(units);
	}

	public void modfilyUnits(Units units) throws BwayHibernateException {
		unitsdaofactory.getUnitsDAO().updateObject(units);
		
	}
	public Object queryAllUnits(QueryVO qvo) throws BwayHibernateException {
		// TODO Auto-generated method stub
		return unitsdaofactory.getUnitsDAO().queryAllUnits(qvo);
	}

}

⌨️ 快捷键说明

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