public Object mapRow(ResultSet rs, int rowNum) throws SQLException { String tn = rs.getString("table_name"); String cn = rs.getString("column_name"); String dt = rs.getString("datatype"); String as = rs.getString("arraysize"); String xt = rs.getString("xtype"); log.debug("ColumnMapper: " + tn + "," + cn + "," + dt + "," + as + "," + xt); TapDataType datatype = new TapDataType(dt, as, xt); ColumnDesc col = new ColumnDesc(tn, cn, datatype); col.description = rs.getString("description"); col.utype = rs.getString("utype"); col.ucd = rs.getString("ucd"); col.unit = rs.getString("unit"); col.principal = intToBoolean(rs.getInt("principal")); col.indexed = intToBoolean(rs.getInt("indexed")); col.std = intToBoolean(rs.getInt("std")); col.id = rs.getString("id"); return col; }
if (ordered) gcs.setOrderBy(orderColumnsClause); List<ColumnDesc> columnDescs = jdbc.query(gcs, new ColumnMapper());
gcs.setOrderBy(orderColumnsClause); List<ColumnDesc> columnDescs = jdbc.query(gcs, new ColumnMapper()); ret.getColumnDescs().addAll(columnDescs);