use of org.jkiss.dbeaver.ext.db2.model.DB2DataSource in project dbeaver by serge-rider.
the class DB2Utils method readDBCfg.
public static List<DB2Parameter> readDBCfg(DBRProgressMonitor monitor, JDBCSession session) throws SQLException {
LOG.debug("readDBCfg");
List<DB2Parameter> listDBParameters = new ArrayList<>();
try (JDBCPreparedStatement dbStat = session.prepareStatement(SEL_DBCFG)) {
try (JDBCResultSet dbResult = dbStat.executeQuery()) {
while (dbResult.next()) {
listDBParameters.add(new DB2Parameter((DB2DataSource) session.getDataSource(), dbResult));
}
}
}
return listDBParameters;
}
Aggregations