📄 roomtypemanager.java
字号:
package com.gzrealmap.oa.room.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.room.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;
public class RoomTypeManager {
public RoomTypeManager() {
}
public static void addRoomType(RoomTypeBean newRoomType) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newRoomType);
}
public static RoomTypeBean findRoomType(Integer obj) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
return (RoomTypeBean) theHibernateUtil.findByPrimaryKey(RoomTypeBean.class,
obj);
}
public static void updateRoomType(RoomTypeBean theUpdateRoomType) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.update2Db(theUpdateRoomType);
}
public static void removeRoomType(RoomTypeBean theRemoveRoomType) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.remove4Db(theRemoveRoomType);
}
public static void addRoom(RoomBean newRoom) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newRoom);
}
public static void addRoom2updateRoomType(RoomTypeBean theOneInDataBase, RoomBean theNewMany)
throws Exception {
theOneInDataBase.addRoom(theNewMany);
theNewMany.setRoomTypeID(theOneInDataBase);
addRoom(theNewMany);
updateRoomType(theOneInDataBase);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -