/**
   * is databaseValue.getMin() <= userValue.getMin()?
   *
   * @param databaseValue
   * @param userValue
   * @return true databaseValue.getMin() <= userValue.getMin();
   * @throws databaseValue == null or userValue == null
   */
  public boolean checkLessThanOrEquals(
      StatisticalMeasureType databaseValue, StatisticalMeasureType userValue) throws Exception {

    StatisticalMeasureType mindatabaseValue = new StatisticalMeasureType();
    mindatabaseValue.setMin(databaseValue.getMin());
    mindatabaseValue.setMax(mindatabaseValue.getMin());

    return (this.checkLessThan(databaseValue, userValue)
        || this.checkEquals(mindatabaseValue, userValue));
  }
  /* (non-Javadoc)
   * @see project.efg.servlets.efgServletsUtil.StatisticalMesureComparatorInterface#checkGreaterThan(project.efg.efgDocument.StatisticalMeasureType, project.efg.efgDocument.StatisticalMeasureType)
   */
  public boolean checkGreaterThan(
      StatisticalMeasureType databaseValue, StatisticalMeasureType userValue) throws Exception {

    return databaseValue.getMax() > userValue.getMax();
  }
  /* (non-Javadoc)
   * @see project.efg.servlets.efgServletsUtil.StatisticalMesureComparatorInterface#checkLessThan(project.efg.efgDocument.StatisticalMeasureType, project.efg.efgDocument.StatisticalMeasureType)
   */
  public boolean checkLessThan(
      StatisticalMeasureType databaseValue, StatisticalMeasureType userValue) throws Exception {

    return databaseValue.getMin() < userValue.getMin();
  }
  /* (non-Javadoc)
   * @see project.efg.servlets.efgServletsUtil.StatisticalMesureComparatorInterface#checkEquals(project.efg.efgDocument.StatisticalMeasureType, project.efg.efgDocument.StatisticalMeasureType)
   */
  public boolean checkEquals(StatisticalMeasureType databaseValue, StatisticalMeasureType userValue)
      throws Exception {

    return (databaseValue.getMin() == userValue.getMin())
        && (databaseValue.getMax() == userValue.getMax());
  }