dataSet.setColumns(createDataColumns(jsDataSet.getJsColumns()));
return dataSet;
}
public static DataColumn createDataColumn(JsDataColumn jsDataColumn) {
DataColumnImpl dataColumn = new DataColumnImpl();
dataColumn.setId(jsDataColumn.getId());
dataColumn.setColumnType(ColumnType.getByName(jsDataColumn.getType()));
if (dataColumn.getColumnType().equals(ColumnType.NUMBER)) {
dataColumn.setValues(createListNumber(jsDataColumn.getJsNumbers()));
} else if (dataColumn.getColumnType().equals(ColumnType.DATE)) {
dataColumn.setValues(createListDate(jsDataColumn.getJsStrings()));
} else {
dataColumn.setValues(createListString(jsDataColumn.getJsStrings()));
}
return dataColumn;
}