Search in sources :

Example 1 with GenericMetaColumn

use of org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaColumn in project dbeaver by serge-rider.

the class GenericUtils method getColumn.

public static Object getColumn(GenericDataSource dataSource, String objectType, String columnId) {
    GenericMetaObject object = dataSource.getMetaObject(objectType);
    if (object == null) {
        return columnId;
    }
    GenericMetaColumn column = object.getColumn(columnId);
    if (column == null || !column.isSupported()) {
        return columnId;
    }
    return column.getColumnIdentifier();
}
Also used : GenericMetaObject(org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaObject) GenericMetaColumn(org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaColumn)

Aggregations

GenericMetaColumn (org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaColumn)1 GenericMetaObject (org.jkiss.dbeaver.ext.generic.model.meta.GenericMetaObject)1