use of org.springframework.jdbc.support.rowset.SqlRowSetMetaData in project dhis2-core by dhis2.
the class ListGrid method addHeaders.
@Override
public Grid addHeaders(SqlRowSet rs) {
SqlRowSetMetaData rsmd = rs.getMetaData();
int columnNo = rsmd.getColumnCount();
for (int i = 1; i <= columnNo; i++) {
addHeader(new GridHeader(rsmd.getColumnLabel(i), false, false));
}
return this;
}
Aggregations