use of org.jkiss.dbeaver.debug.DBGResolver in project dbeaver by dbeaver.
the class DebugCore method resolveDatabaseContext.
public static Map<String, Object> resolveDatabaseContext(DBSObject databaseObject) {
Map<String, Object> result = new HashMap<String, Object>();
if (databaseObject == null) {
return result;
}
DBPDataSource dataSource = databaseObject.getDataSource();
if (dataSource == null) {
return result;
}
DBGResolver finder = Adapters.adapt(dataSource.getContainer(), DBGResolver.class);
if (finder == null) {
return result;
}
Map<String, Object> context = finder.resolveContext(databaseObject);
result.putAll(context);
return result;
}
Aggregations