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

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


    }
    return ret;
  }

  private Userlevel getUserLevel(Long level_id) {
    Userlevel userlevel = new Userlevel();
    try {
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
View Full Code Here


    try {
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Userlevel uslevel = new Userlevel();
      uslevel.setStarttime(new Date());
      uslevel.setDescription(description);
      uslevel.setStatuscode(new Integer(myStatus));
      uslevel.setDeleted("false");
      session.merge(uslevel);
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
    } catch (Exception ex2) {
      log.error("[addUserLevel]", ex2);
View Full Code Here

    }
    return ret;
  }

  private Userlevel getUserLevel(Long level_id) {
    Userlevel userlevel = new Userlevel();
    try {
      TypedQuery<Userlevel> query = em
          .createQuery("select c from Userlevel as c where c.level_id = :level_id AND c.deleted <> :deleted", Userlevel.class);
      query.setParameter("level_id", level_id.longValue());
      query.setParameter("deleted", "true");
View Full Code Here

    return null;
  }

  public void addUserLevel(String description, int myStatus) {
    try {
      Userlevel uslevel = new Userlevel();
      uslevel.setStarttime(new Date());
      uslevel.setDescription(description);
      uslevel.setStatuscode(new Integer(myStatus));
      uslevel.setDeleted("false");
      em.merge(uslevel);
    } catch (Exception ex2) {
      log.error("[addUserLevel]", ex2);
    }
  }
View Full Code Here

TOP

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

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.