getmanager.java

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

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

public class GetManager {
  public GetManager() {
  }
  public static void addGets(GetBean newGets) throws Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      theHibernateUtil.create2Db(newGets);
    }
/**
    public static GetBean findGet(Integer obj) throws Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      return (GetBean) theHibernateUtil.findByPrimaryKey(GetBean.class,
          obj);
    }

    public static void updateGet(GetBean theUpdateCar) throws
        Exception {
      HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
      theHibernateUtil.update2Db(theUpdateGet);
    }

    public static void removeGet(GetBean theRemoveCar) throws
      Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.remove4Db(theRemoveGet);
  }
*/
 /* public static void main(String[] args) throws Exception{
      new DriverManager();
      GetBean driver = new GetBean();
      driver.setGetID(111);
     driver.setGetperson("123");
     driver.setGetworktoolname("123");
     driver.setGettimes("111");
     addGet(driver);
      }
*/
}

⌨️ 快捷键说明

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