📄 booklendmanager.java
字号:
package com.gzrealmap.oa.book.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.book.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;
public class BookLendManager {
public BookLendManager() {
}
public static void addBookLend(BookLendBean newBookLend) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newBookLend);
}
public static BookLendBean findBookLend(Integer obj) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
return (BookLendBean) theHibernateUtil.findByPrimaryKey(BookLendBean.class,
obj);
}
public static void updateBookLend(BookLendBean theUpdateBookLend) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.update2Db(theUpdateBookLend);
}
public static void removeBookLend(BookLendBean theRemoveBookLend) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.remove4Db(theRemoveBookLend);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -