📄 rollmanager.java
字号:
package com.gzrealmap.oa.dossier.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.dossier.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;
import com.gzrealmap.oa.dossierborrow.*;
public class RollManager {
public RollManager() {
}
public static void addRoll(RollBean newRoll) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newRoll);
}
public static RollBean findRoll(Integer obj) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
return (RollBean) theHibernateUtil.findByPrimaryKey(RollBean.class,
obj);
}
public static void updateRoll(RollBean theUpdateRoll) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.update2Db(theUpdateRoll);
}
public static void removeRoll(RollBean theRemoveRoll) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.remove4Db(theRemoveRoll);
}
/**
* 增加一个UserBorrowApp
*/
public static void addUserBorrowApp(UserBorrowAppBean newUserBorrowApp) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newUserBorrowApp);
}
public static void addUserBorrowApp2Roll(RollBean theOneInDataBase, UserBorrowAppBean theNewMany)
throws Exception {
theOneInDataBase.addUserBorrowApp(theNewMany);
theNewMany.setRollID(theOneInDataBase);
addUserBorrowApp(theNewMany);
updateRoll(theOneInDataBase);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -