driverpeccancymanager.java

来自「jdo开发实例,一个功能全面的oa系统」· Java 代码 · 共 41 行

JAVA
41
字号
package com.gzrealmap.oa.car.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.car.*;
import com.gzrealmap.lib.hibernate.HibernateUtil;
import java.io.*;

public class DriverPeccancyManager {
  public DriverPeccancyManager() {
  }
  public static void addDriverPeccancy(DriverPeccancyBean newDriverPeccancy) throws Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      theHibernateUtil.create2Db(newDriverPeccancy);
    }

    public static DriverPeccancyBean findDriverPeccancy(Integer obj) throws Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      return (DriverPeccancyBean) theHibernateUtil.findByPrimaryKey(DriverPeccancyBean.class,
          obj);
    }

    public static void updateDriverPeccancy(DriverPeccancyBean theUpdateDriverPeccancy) throws
        Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      theHibernateUtil.update2Db(theUpdateDriverPeccancy);
    }

    public static void removeDriverPeccancy(DriverPeccancyBean theRemoveDriverPeccancy) throws
      Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.remove4Db(theRemoveDriverPeccancy);
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?