use of fr.lirmm.graphik.graal.store.rdbms.util.DBColumn in project graal by graphik-team.
the class ResultSet2DBTableConverter method convert.
// /////////////////////////////////////////////////////////////////////////
// PUBLIC METHODS
// /////////////////////////////////////////////////////////////////////////
@Override
public DBTable convert(ResultSet result) throws ConversionException {
try {
String tableName = result.getString("TABLE_NAME");
List<DBColumn> cols = this.driver.getColumns(tableName);
if (!this.driver.isCaseSensitive()) {
tableName = tableName.toUpperCase();
}
return new DBTable(tableName, cols);
} catch (SQLException e) {
throw new ConversionException(e);
}
}
Aggregations