Package org.openmeetings.app.persistence.beans.user

Examples of org.openmeetings.app.persistence.beans.user.Salutations


    ArrayList<Long> Ids = new ArrayList<Long>();
    Ids.add(11L);
    PrivateMessagesDaoImpl.getInstance().updatePrivateMessagesToTrash(Ids, true, 0L);

    EntityTransaction tx = getEntityManager().getTransaction();
    Salutations sl = new Salutations();
    sl.setDeleted("false");
    sl.setName("addSalutation");
    sl.setFieldvalues_id(1000L);
    sl.setStarttime(new Date());
    tx.begin();
    try {
      getEntityManager().merge(sl);
      tx.commit();
    } catch (Exception e) {
View Full Code Here


    try {
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Salutations ti = new Salutations();
      ti.setName(titelname);
      ti.setDeleted("false");
      ti.setFieldvalues_id(fieldvalues_id);
      ti.setStarttime(new Date());
      ti = session.merge(ti);
      Long salutations_id = ti.getSalutations_id();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
      return salutations_id;
    } catch (Exception ex2) {
      log.error("[addUserSalutation]" ,ex2);
View Full Code Here

      TypedQuery<Salutations> q = session.createQuery(select);
      List<Salutations> ll = q.getResultList();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
      for (Iterator it4 = ll.iterator(); it4.hasNext();) {
        Salutations ti = (Salutations) it4.next();
        ti.setLabel(Fieldmanagment.getInstance().getFieldByIdAndLanguage(ti.getFieldvalues_id(),language_id));
      }
     
     
      return ll;
    } catch (Exception ex2) {
View Full Code Here

   *
   * @param titelname
   */
  public Long addUserSalutation(String titelname, long fieldvalues_id) {
    try {
      Salutations ti = new Salutations();
      ti.setName(titelname);
      ti.setDeleted("false");
      ti.setFieldvalues_id(fieldvalues_id);
      ti.setStarttime(new Date());
      ti = em.merge(ti);
      Long salutations_id = ti.getSalutations_id();
      return salutations_id;
    } catch (Exception ex2) {
      log.error("[addUserSalutation]", ex2);
    }
    return null;
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.user.Salutations

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.