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

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


    return results;
  }

  public Platform getByModel(String model) {
    List eResults = template.query(PLATFORM_SELECT_BY_MODEL, new Object[]{model}, new PlatformMapper());
    Platform e = eResults.size() > 0 ? (Platform) eResults.get(0) : null;
    return e;
 
View Full Code Here


    return e;
 

  public Platform get(long platformId) throws IOException {
    List eResults = template.query(PLATFORM_SELECT_BY_ID, new Object[]{platformId}, new PlatformMapper());
    Platform e = eResults.size() > 0 ? (Platform) eResults.get(0) : null;
    return e;
  }
View Full Code Here

    return e;
  }

  public class PlatformMapper implements RowMapper<Platform> {
    public Platform mapRow(ResultSet rs, int rowNum) throws SQLException {
      Platform p = new PlatformImpl();
      p.setPlatformId(rs.getLong("platformId"));
      p.setPlatformType(PlatformType.get(rs.getString("name")));
      p.setDescription(rs.getString("description"));
      p.setInstrumentModel(rs.getString("instrumentModel"));
      p.setNumContainers(rs.getInt("numContainers"));
      return p;
    }
View Full Code Here

  public JSONObject addSequencerReference(HttpSession session, JSONObject json) {
    try {
      if (json.has("server") && !json.get("server").equals("")) {
        InetAddress i = InetAddress.getByName(json.getString("server"));
        String name = json.getString("name");
        Platform p = requestManager.getPlatformById(json.getInt("platform"));
        SequencerReference sr = new SequencerReferenceImpl(name, i, p);
        sr.setAvailable(i.isReachable(2000));
        log.info(sr.toString());
        requestManager.saveSequencerReference(sr);
        return JSONUtils.SimpleJSONResponse("Saved successfully");
View Full Code Here

TOP

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

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.