use of org.pentaho.agilebi.modeler.models.JoinTableModel in project data-access by pentaho.
the class MultitableGuiModel method createMultiTableDatasourceDTO.
public MultiTableDatasourceDTO createMultiTableDatasourceDTO(String dsName) {
MultiTableDatasourceDTO dto = new MultiTableDatasourceDTO();
dto.setDoOlap(this.doOlap);
dto.setDatasourceName(dsName);
List<String> selectedTables = new ArrayList<String>();
for (JoinTableModel tbl : this.selectedTables) {
selectedTables.add(tbl.getName());
}
dto.setSelectedTables(selectedTables);
SchemaModel schema = new SchemaModel();
schema.setJoins(this.getJoins());
schema.setFactTable(this.factTable);
dto.setSchemaModel(schema);
return dto;
}
Aggregations