meetingattendmanager.java

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

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

public class MeetingAttendManager {
  public MeetingAttendManager() {
  }

  public static void addMeetingAttend(MeetingAttendBean newMeetingAttend) throws Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.create2Db(newMeetingAttend);
  }

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

  public static void updateMeetingAttend(MeetingAttendBean theUpdateMeetingAttend) throws
      Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.update2Db(theUpdateMeetingAttend);
  }

  public static void removeMeetingAttend(MeetingAttendBean theRemoveMeetingAttend) throws
    Exception {
  HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
  theHibernateUtil.remove4Db(theRemoveMeetingAttend);
}

}

⌨️ 快捷键说明

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