Examples of AppointmentReminderTyps


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

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

  }

  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

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

  }

  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

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

  }

  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

Examples of org.apache.openmeetings.persistence.beans.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

Examples of org.apache.openmeetings.persistence.beans.calendar.AppointmentReminderTyps

  }

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

      AppointmentReminderTyps ac = this
          .getAppointmentReminderTypById(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

Examples of org.apache.openmeetings.persistence.beans.calendar.AppointmentReminderTyps

  }

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

      AppointmentReminderTyps ac = new AppointmentReminderTyps();

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

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

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

Examples of org.apache.openmeetings.persistence.beans.calendar.AppointmentReminderTyps

  }

  public Long deleteAppointmentReminderTyp(Long typId) {
    try {

      AppointmentReminderTyps ac = this
          .getAppointmentReminderTypById(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

Examples of org.apache.openmeetings.persistence.beans.calendar.AppointmentReminderTyps

    log.debug("AppointmentDAOImpl.updateAppointment");
    try {

      Appointment ap = this.getAppointmentById(appointmentId);

      AppointmentReminderTyps appointmentReminderTyps = appointmentReminderTypDaoImpl
          .getAppointmentReminderTypById(remind);
      AppointmentCategory appointmentCategory = appointmentCategoryDaoImpl
          .getAppointmentCategoryById(categoryId);

      boolean sendMail = !ap.getAppointmentName().equals(appointmentName) ||
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.calendar.AppointmentReminderTyps

    log.debug("AppointmentDAOImpl.updateAppointment");
    try {

      Appointment ap = this.getAppointmentById(appointmentId);

      AppointmentReminderTyps appointmentReminderTyps = appointmentReminderTypDaoImpl
          .getAppointmentReminderTypById(remind);
      AppointmentCategory appointmentCategory = appointmentCategoryDaoImpl
          .getAppointmentCategoryById(categoryId);

      boolean sendMail = !ap.getAppointmentName().equals(appointmentName) ||
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.