if(rs.next()) { if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) { assemblyId = rs.getString(2); }
while(rs.next()) { if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) { assemblyId = rs.getString(2); }
  private String getRecipeAssembly(Connection conn, Map substitutions) {    String assemblyId = null;    try {      Statement stmt = conn.createStatement();      try {        String query = DBUtils.getQuery("queryRecipeProperties", substitutions);        ResultSet rs = stmt.executeQuery(query);                // Relys on the fact that a complex recipe will only have 1 parameter        // in the Recipe Args table.        if(rs.next()) {      if(rs.getString(1).equalsIgnoreCase(ComplexRecipeBase.ASSEMBLY_PROP)) {        assemblyId = rs.getString(2);      }        }        rs.close();      } catch(SQLException sqle) {        if(log.isErrorEnabled()) {          log.error("SQLException getting recipe Assembly Id", sqle);        }      }    } catch (SQLException sqe) {      if(log.isErrorEnabled()) {        log.error("SQLException getting recipe Assembly Id", sqe);      }    }        return assemblyId;  }