Examples of StockDatabaseHeader


Examples of com.quantcomponents.series.jdbc.StockDatabaseHeader

  @Override
  public StockDatabaseHeader get(String id) throws SQLException {
    PreparedStatement stmt = connection.prepareStatement("SELECT " + FIELDS + " FROM " + TABLE_NAME + " WHERE ID = ?");
    stmt.setString(1, id);
    ResultSet rs = stmt.executeQuery();
    StockDatabaseHeader result = null;
    if (rs.next()) {
      result = buildHeaderFromResultSet(rs);
    }
    rs.close();
    return result;
View Full Code Here

Examples of com.quantcomponents.series.jdbc.StockDatabaseHeader

    rs.close();
    return result;
  }
 
  private StockDatabaseHeader buildHeaderFromResultSet(ResultSet rs) throws SQLException {
    StockDatabaseHeader header = new StockDatabaseHeader();
    header.id = rs.getString(1);
    Timestamp timestamp = rs.getTimestamp(2);
    if (timestamp != null) {
      header.timestamp = timestamp.getTime();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.