use of org.jkiss.dbeaver.model.data.DBDAttributeBindingType in project dbeaver by serge-rider.
the class ComplexTypeAttributeTransformer method createNestedTypeBindings.
static void createNestedTypeBindings(DBCSession session, DBDAttributeBinding attribute, List<Object[]> rows, DBSEntity dataType) throws DBException {
List<DBDAttributeBinding> nestedBindings = new ArrayList<>();
for (DBSEntityAttribute nestedAttr : CommonUtils.safeCollection(dataType.getAttributes(session.getProgressMonitor()))) {
DBDAttributeBindingType nestedBinding = new DBDAttributeBindingType(attribute, nestedAttr);
nestedBinding.lateBinding(session, rows);
nestedBindings.add(nestedBinding);
}
if (!nestedBindings.isEmpty()) {
attribute.setNestedBindings(nestedBindings);
}
}
Aggregations