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);
}
}