public Object extractData(ResultSet rs) throws SQLException, DataAccessException { if (rs.next()) return ExecutionPhase.valueOf(getString(rs, jobSchema.jobTable, "executionPhase")); return null; }
public void mapAndStoreRow(ResultSet rs) throws SQLException { String type = rs.getString("type"); String name = rs.getString("name"); String value = getString(rs, jobSchema.detailTable, "value"); if (TYPE_PARAMETER.equals(type)) { job.getParameterList().add(new Parameter(name, value)); } else if (TYPE_RESULT.equals(type)) { try { URI uri = new URI(value); job.getResultsList().add(new Result(name, uri)); } catch(URISyntaxException ex) { throw new IllegalStateException("failed to convert " + value + " to a URI"); } } else throw new IllegalStateException("unexpected type in param table: " + type); } }
String eMsg = getString(rs, jobSchema.jobTable, "error_summaryMessage"); String et = getString(rs, jobSchema.jobTable, "error_type"); ErrorType eType = null; if (et != null) try String surl = getString(rs, jobSchema.jobTable, "error_documentURL"); errorUrl = new URL(surl); String runID = getString(rs, jobSchema.jobTable, "runID"); String requestPath = getString(rs, jobSchema.jobTable, "requestPath"); String remoteIP = getString(rs, jobSchema.jobTable, "remoteIP"); String content = getString(rs, jobSchema.jobTable, "jobInfo_content"); String contentType = getString(rs, jobSchema.jobTable, "jobInfo_contentType");