use of com.developmentontheedge.be5.metadata.model.base.BeCaseInsensitiveCollection in project be5 by DevelopmentOnTheEdge.
the class MetaImpl method getColumns.
@Override
@SuppressWarnings(value = "unchecked")
public Map<String, ColumnDef> getColumns(Entity entity) {
BeModelElement scheme = entity.getAvailableElement("Scheme");
if (scheme == null)
return new HashMap<>();
BeCaseInsensitiveCollection<ColumnDef> columns = (BeCaseInsensitiveCollection<ColumnDef>) ((TableDef) scheme).get("Columns");
return StreamSupport.stream(columns.spliterator(), false).collect(Utils.toLinkedMap(ColumnDef::getName, Function.identity()));
}
Aggregations