Search in sources :

Example 1 with SqlRowSetMetaData

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;
}
Also used : SqlRowSetMetaData(org.springframework.jdbc.support.rowset.SqlRowSetMetaData) GridHeader(org.hisp.dhis.common.GridHeader)

Aggregations

GridHeader (org.hisp.dhis.common.GridHeader)1 SqlRowSetMetaData (org.springframework.jdbc.support.rowset.SqlRowSetMetaData)1