Package com.odb.core.dao.dto

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


  /* (non-Javadoc)
   * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
   */
  public DataSourceAxisInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
    DataSourceAxisInfo dxInfo = new DataSourceAxisInfo();
    dxInfo.setDataSourceID(rs.getString("DATASOURCE_ID"));
    dxInfo.setDataSourceAxisID(rs.getString("DATASOURCE_AXIS_ID"));
    dxInfo.setDataSourceAxisName(rs.getString("DATASOURCE_AXIS_NAME"));
    dxInfo.setDataSourceAxisType(rs.getString("DATASOURCE_AXIS_TYPE"));
    return dxInfo;
  }
View Full Code Here


    dsInfo.setTimeoutInterval(dsConfig.getDsTimeoutInterval());
    dsInfo.setSeriesCount(dsConfig.getSeriesCount());
    odbDAO.addDataSource(dsInfo);

    for (int i = 0; i < dsConfig.getXsInfo().size(); i++) {
      DataSourceAxisInfo dsAxisInfo = new DataSourceAxisInfo();
      dsAxisInfo.setDataSourceID(dsID);
      dsAxisInfo.setDataSourceAxisID(dsID + "_" + System.currentTimeMillis());
      dsAxisInfo.setDataSourceAxisName(dsConfig.getXsInfo().get(i).getDataSourceAxisName());
      dsAxisInfo.setDataSourceAxisType(dsConfig.getXsInfo().get(i).getDataSourceAxisType());
      odbDAO.addDataSourceAxis(dsAxisInfo);
      ArrayList<String> axisLabels = dsConfig.getXsInfo().get(i).getAxisLabels();

      for (int j = 0; j < axisLabels.size(); j++) {
        DataSourceAxisDetailInfo dsAxisDetailInfo = new DataSourceAxisDetailInfo();
        dsAxisDetailInfo.setDataSourceAxisID(dsAxisInfo.getDataSourceAxisID());
        dsAxisDetailInfo.setAxisLabelIndex(j);
        dsAxisDetailInfo.setAxisLabelValue(axisLabels.get(j));
        odbDAO.addDataSourceAxisDetail(dsAxisDetailInfo);
      }
    }
View Full Code Here

    dsConfig.setPublisherID(dsInfo.getPublisherID());
    dsConfig.setDsID(dsID);
    List<DataSourceAxisInfo> dsAxisInfoAll = odbDAO.getDataSourceAxisInfo(dsID);
    List<AxisInfo> xsInfoAll = new ArrayList<AxisInfo>();
    for (int i = 0; i < dsAxisInfoAll.size(); i++) {
      DataSourceAxisInfo dsAxisInfo = dsAxisInfoAll.get(i);
      AxisInfo xsInfo = new AxisInfo();
      xsInfo.setDataSourceAxisName(dsAxisInfo.getDataSourceAxisName());
      xsInfo.setDataSourceAxisType(dsAxisInfo.getDataSourceAxisType());
      List<DataSourceAxisDetailInfo> dsAxisInfoDetailAll = odbDAO.getDataSourceAxisDetailInfoListBy(dsAxisInfo.getDataSourceAxisID());
      List<String> axisLabels = new ArrayList<String>();
      for (int j = 0; j < dsAxisInfoDetailAll.size(); j++) {
        DataSourceAxisDetailInfo dsAxisInfoDetail = dsAxisInfoDetailAll.get(j);
        axisLabels.add(dsAxisInfoDetail.getAxisLabelValue());
      }
View Full Code Here

TOP

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

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.