Package org.openmeetings.app.persistence.beans.basic

Examples of org.openmeetings.app.persistence.beans.basic.ErrorValues


    Long fieldValuesId = flv.get(0).getFieldvalues_id();
    Long errorValuesId = errorManagement.addErrorValues(
        getAvailableErrorValuesId(), errorTypeId, fieldValuesId);
    assertNotNull("Errorvalues Id should persists", errorValuesId);

    ErrorValues ev = errorManagement.getErrorValuesById(errorValuesId);
    assertNotNull("Error type id should not be null", ev.getErrortype_id());
    assertEquals("Error type should persists", errorTypeId,
        ev.getErrortype_id());
    assertNotNull("Fieldvalues should not be null", ev.getFieldvalues_id());
    assertEquals("Fieldvalues should persists", fieldValuesId,
        ev.getFieldvalues_id());
  }
View Full Code Here


  }

  public Long addErrorValues(Long errorvalues_id, Long errortype_id,
      Long fieldvalues_id) {
    try {
      ErrorValues eValue = new ErrorValues();
      eValue.setErrorvalues_id(errorvalues_id);
      eValue.setErrortype_id(errortype_id);
      eValue.setDeleted("false");
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      return eValue.getErrorvalues_id();
    } catch (Exception ex2) {
      log.error("[addErrorValues]: ", ex2);
    }
    return null;
  }
View Full Code Here

    return null;
  }

  public Long getErrorValueById(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorValues eValue = new ErrorValues();
      eValue.setErrortype_id(errortype_id);
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      Long newerrorvalues_id = eValue.getErrorvalues_id();
      return newerrorvalues_id;
    } catch (Exception ex2) {
      log.error("[getErrorValueById]: ", ex2);
    }
    return null;
View Full Code Here

    return null;
  }

  public Long updateErrorValues(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorValues eValue = new ErrorValues();
      eValue.setErrortype_id(errortype_id);
      eValue.setStarttime(new Date());
      eValue.setFieldvalues_id(fieldvalues_id);
      eValue = em.merge(eValue);
      Long newerrorvalues_id = eValue.getErrorvalues_id();
      return newerrorvalues_id;
    } catch (Exception ex2) {
      log.error("[addErrorType]: ", ex2);
    }
    return null;
View Full Code Here

          + " where c.errorvalues_id = :errorvalues_id "
          + " AND c.deleted <> :deleted";
      TypedQuery<ErrorValues> query = em.createQuery(hql, ErrorValues.class);
      query.setParameter("errorvalues_id", errorvalues_id);
      query.setParameter("deleted", "true");
      ErrorValues e = null;
      try {
        e = query.getSingleResult();
      } catch (NoResultException ex) {
      }
      return e;
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.basic.ErrorValues

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.