Package uk.ac.bbsrc.tgac.miso.core.data

Examples of uk.ac.bbsrc.tgac.miso.core.data.Status


    return e;
  }

  public Status getByRunName(String runName) throws IOException {
    List eResults = template.query(STATUS_SELECT_BY_RUN_NAME, new Object[]{runName}, new StatusMapper());
    Status e = eResults.size() > 0 ? (Status) eResults.get(0) : null;
    return e;
  }
View Full Code Here


    return e;
  }

  public class StatusMapper implements RowMapper<Status> {
    public Status mapRow(ResultSet rs, int rowNum) throws SQLException {
      Status s = dataObjectFactory.getStatus();
      s.setStatusId(rs.getLong("statusId"));
      s.setHealth(HealthType.valueOf(rs.getString("health")));
      s.setStartDate(rs.getDate("startDate"));
      s.setCompletionDate(rs.getDate("completionDate"));
      s.setRunName(rs.getString("runName"));
      s.setInstrumentName(rs.getString("instrumentName"));
      s.setLastUpdated(rs.getTimestamp("lastUpdated"));
     
      Blob xmlblob = rs.getBlob("xml");
      if (xmlblob != null) {
        if (xmlblob.length() > 0) {
          byte[] rbytes = xmlblob.getBytes(1, (int)xmlblob.length());
          s.setXml(new String(rbytes));
        }
      }
      return s;
    }
View Full Code Here

    for (JSONObject run : (Iterable<JSONObject>) runs) {
      String runName = run.getString("runName");
      sb.append("Processing " + runName);
      log.debug("Processing " + runName);
      Status is = new IlluminaStatus();
      is.setRunName(runName);

      Run r = new IlluminaRun();
      r.setPlatformRunId(0);
      r.setAlias(runName);
      r.setFilePath(runName);
      r.setDescription("Test Run Import");
      r.setPairedEnd(false);
      is.setHealth(ht);
      r.setStatus(is);

      updatedRuns.put(r.getAlias(), r);
      sb.append("...done\n");
    }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.Status

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.