📄 staticassettypemanager.java
字号:
package com.gzrealmap.oa.staticasset.business;
/**
* <p>Title: RealOA</p>
* <p>Description: RealOA</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: gzrealmap.com</p>
* @author not attributable
* @version 1.0
*/
import com.gzrealmap.oa.staticasset.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;
public class StaticAssetTypeManager {
public StaticAssetTypeManager() {
}
public static void addStaticAssetType(StaticAssetTypeBean newStaticAssetType) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newStaticAssetType);
}
public static StaticAssetTypeBean findStaticAssetType(Integer obj) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
return (StaticAssetTypeBean) theHibernateUtil.findByPrimaryKey(StaticAssetTypeBean.class,
obj);
}
public static void updateStaticAssetType(StaticAssetTypeBean theUpdateStaticAssetType) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.update2Db(theUpdateStaticAssetType);
}
public static void removeStaticAssetType(StaticAssetTypeBean theRemoveStaticAssetType) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.remove4Db(theRemoveStaticAssetType);
}
/**
* 增加一个WorkToolBuy
*/
public static void addStaticAsset(StaticAssetBean newStaticAsset) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newStaticAsset);
}
public static void addStaticAsset2WorkTool(StaticAssetTypeBean theOneInDataBase, StaticAssetBean theNewMany)
throws Exception {
theOneInDataBase.addStaticAsset(theNewMany);
theNewMany.setStaticAssetTypeID(theOneInDataBase);
addStaticAsset(theNewMany);
updateStaticAssetType(theOneInDataBase);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -