Package com.odb.core.dao.dto

Examples of com.odb.core.dao.dto.DataSourceSeries


  /* (non-Javadoc)
   * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
   */
  public DataSourceSeries mapRow(ResultSet rs, int rowNum) throws SQLException {
    DataSourceSeries dsSeries = new DataSourceSeries();

    dsSeries.setDataSourceID(rs.getString("DATASOURCE_ID"));
    dsSeries.setSeriesIndex(rs.getString("DATASOURCE_SERIES_INDEX"));
    dsSeries.setSeriesIndexSeq(rs.getLong("DATASOURCE_SERIES_INDEX_SEQ"));
    dsSeries.setSeriesIndexSeqVal(rs.getDouble("DATASOURCE_SERIES_IDX_SEQ_VAL"));
    dsSeries.setDateTime(rs.getTimestamp("DATETIME"));
    return dsSeries;
  }
View Full Code Here


   * @see org.springframework.jdbc.core.ResultSetExtractor#extractData(java.sql.ResultSet)
   */
  public DataSourceSeries extractData(ResultSet rs) throws SQLException,
      DataAccessException {
   
    DataSourceSeries dsSeries = new DataSourceSeries();
    if(rs.next()){
      dsSeries.setDataSourceID(rs.getString("DATASOURCE_ID"));
      dsSeries.setSeriesIndex(rs.getString("DATASOURCE_SERIES_INDEX"));
      dsSeries.setSeriesIndexSeq(rs.getLong("DATASOURCE_SERIES_INDEX_SEQ"));
      dsSeries.setSeriesIndexSeqVal(rs.getDouble("DATASOURCE_SERIES_IDX_SEQ_VAL"));
    }
    return dsSeries;
  }
View Full Code Here

   *             the sQL exception
   */
  public void addDataSeries(String pubID, String dsID, Map<String, Double> userData) throws SQLException {
    Iterator<String> it = userData.keySet().iterator();
    while (it.hasNext()) {
      DataSourceSeries dsSeries = new DataSourceSeries();
      dsSeries.setDataSourceID(dsID);
      String seriesNum = it.next();
      dsSeries.setSeriesIndex(seriesNum);
      dsSeries.setSeriesIndexSeqVal(userData.get(seriesNum));
      dsSeries.setDateTime(new Timestamp(System.currentTimeMillis()));
      odbDAO.addSeriesData(dsSeries);
    }
    publish(dsID);
  }
View Full Code Here

TOP

Related Classes of com.odb.core.dao.dto.DataSourceSeries

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.