Пример #1
0
  private boolean checkTableExists(Connection con) {

    boolean result = true;

    if (!DBUtils.checkTableExists(con, "meta")) {
      result = false;
      ReportManager.problem(this, con, "Meta table not present");
    } else {
      ReportManager.correct(this, con, "Meta table present");
    }

    return result;
  }
  public boolean run(DatabaseRegistryEntry dbre) {

    Connection con = dbre.getConnection();

    if (!DBUtils.checkTableExists(con, "species_tree_node_tag")) {
      ReportManager.problem(this, con, "species_tree_node_tag table not present");
      return false;
    }

    // These methods return false if there is any problem with the test
    boolean result = true;
    result &= checkTreeStatsArePresent(dbre);
    return result;
  }
  public boolean run(DatabaseRegistryEntry dbre) {

    boolean result = true;

    Connection con = dbre.getConnection();

    if (!DBUtils.checkTableExists(con, "method_link_species_set_tag")) {
      result = false;
      ReportManager.problem(this, con, "method_link_species_set_tag table not present");
      return result;
    }

    result &= checkLowCoverageMLSSAreLinkedToHighCoverageMLSS(dbre);

    return result;
  }