Package org.apache.openmeetings.db.entity.calendar

Examples of org.apache.openmeetings.db.entity.calendar.AppointmentReminderTyps


      TypedQuery<AppointmentReminderTyps> query = em.createQuery(hql, AppointmentReminderTyps.class);
      query.setParameter("deleted", true);
      query.setParameter("typId", typId);

      AppointmentReminderTyps appointmentReminderTyps = null;
      try {
        appointmentReminderTyps = query.getSingleResult();
      } catch (NoResultException ex) {
      }
View Full Code Here


  }

  public Long updateAppointmentReminderTyps(Long typId, String name) {
    try {

      AppointmentReminderTyps ac = this
          .get(typId);

      ac.setName(name);
      ac.setUpdatetime(new Date());

      if (ac.getTypId() == null) {
        em.persist(ac);
      } else {
        if (!em.contains(ac)) {
          em.merge(ac);
        }
View Full Code Here

  }

  public Long addAppointmentReminderTyps(Long user_id, String name, long fieldvalues_id) {
    try {

      AppointmentReminderTyps ac = new AppointmentReminderTyps();

      ac.setName(name);
      ac.setStarttime(new Date());
      ac.setDeleted(false);
      ac.setUser(usersDao.get(user_id));
      ac.setFieldvalues_id(fieldvalues_id);

      ac = em.merge(ac);
      Long category_id = ac.getTypId();

      return category_id;
    } catch (Exception ex2) {
      log.error("[addAppointmentReminderTyps]: ", ex2);
    }
View Full Code Here

  }

  public Long deleteAppointmentReminderTyp(Long typId) {
    try {

      AppointmentReminderTyps ac = this
          .get(typId);

      log.debug("ac: " + ac);

      if (ac == null) {
        log.debug("Already deleted / Could not find: " + typId);
        return typId;
      }
      ac.setUpdatetime(new Date());
      ac.setDeleted(true);

      if (ac.getTypId() == null) {
        em.persist(ac);
      } else {
        if (!em.contains(ac)) {
          em.merge(ac);
        }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.calendar.AppointmentReminderTyps

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.