⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 meetingmanager.java

📁 jdo开发实例,一个功能全面的oa系统
💻 JAVA
字号:
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.*;
import com.gzrealmap.oa.room.*;

public class MeetingManager {
  public MeetingManager() {
  }

  public static void addMeeting(MeetingBean newMeeting) throws Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.create2Db(newMeeting);
  }

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

  public static void updateMeeting(MeetingBean theUpdateMeeting) throws
      Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.update2Db(theUpdateMeeting);
  }

  public static void removeMeeting(MeetingBean theRemoveMeeting) throws
    Exception {
  HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
  theHibernateUtil.remove4Db(theRemoveMeeting);
}

/**
   * 增加一个MeetingEmcee
   */
 public static void addMeetingEmcee(MeetingEmceeBean newMeetingEmcee) throws Exception {
   HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
   theHibernateUtil.create2Db(newMeetingEmcee);
 }
 public static void addMeetingEmcee2Meeting(MeetingBean theOneInDataBase, MeetingEmceeBean theNewMany)
throws Exception {
   theOneInDataBase.addMeetingEmcee(theNewMany);
   theNewMany.setMeetingID(theOneInDataBase);
   addMeetingEmcee(theNewMany);
   updateMeeting(theOneInDataBase);
  }
  /**
    * 增加一个MeetingEmcee
    */
  public static void addMeetingAttend(MeetingAttendBean newMeetingAttend) throws Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.create2Db(newMeetingAttend);
  }
  public static void addMeetingAttend2Meeting(MeetingBean theOneInDataBase, MeetingAttendBean theNewMany)
 throws Exception {
    theOneInDataBase.addMeetingAttend(theNewMany);
    theNewMany.setMeetingID(theOneInDataBase);
    addMeetingAttend(theNewMany);
    updateMeeting(theOneInDataBase);
   }

   /**
    * 增加一个MeetingEmcee
    */
  public static void addMeetingFile(MeetingFileBean newMeetingFile) throws Exception {
    HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
    theHibernateUtil.create2Db(newMeetingFile);
  }
  public static void addMeetingFile2Meeting(MeetingBean theOneInDataBase, MeetingFileBean theNewMany)
 throws Exception {
    theOneInDataBase.addMeetingFile(theNewMany);
    theNewMany.setMeetingID(theOneInDataBase);
    addMeetingFile(theNewMany);
    updateMeeting(theOneInDataBase);
   }

   /**
     * 增加一个RoomDetail
     */
   public static void addRoomDetail(RoomDetailBean newRoomDetail) throws Exception {
     HibernateUtil theHibernateUtil = HibernateUtil.getInstance();
     theHibernateUtil.create2Db(newRoomDetail);
   }
   public static void addRoomDetail2Meeting(MeetingBean theOneInDataBase, RoomDetailBean theNewMany)
  throws Exception {
     theOneInDataBase.addRoomDetail(theNewMany);
     theNewMany.setMeetingID(theOneInDataBase);
     addRoomDetail(theNewMany);
     updateMeeting(theOneInDataBase);
    }


}

⌨️ 快捷键说明

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