trainfeemanager.java
来自「jdo开发实例,一个功能全面的oa系统」· Java 代码 · 共 41 行
JAVA
41 行
package com.gzrealmap.oa.train.bussiness;
/**
* <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.train.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;
public class TrainFeeManager {
public TrainFeeManager() {
}
public static void addTrainFee(TrainFeeBean newTrainFee) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.create2Db(newTrainFee);
}
public static TrainFeeBean findTrainFee(Integer obj) throws Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
return (TrainFeeBean) theHibernateUtil.findByPrimaryKey(TrainFeeBean.class,
obj);
}
public static void updateTrainFee(TrainFeeBean theUpdateTrainFee) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.update2Db(theUpdateTrainFee);
}
public static void removeTrainFee(TrainFeeBean theRemoveTrainFee) throws
Exception {
HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
theHibernateUtil.remove4Db(theRemoveTrainFee);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?