Ejemplo n.º 1
0
 /**
  * Formats a single data row.
  *
  * @param context search context
  * @param numColumns number of columns
  * @throws SQLException if an error occurs
  */
 private void formatRow(SearchFormatterContext context, int numColumns) throws SQLException {
   DataRowBuilder row = new DataRowBuilder(context.getWriter());
   ResultSet results = context.getResultSet();
   row.begin();
   for (int i = 1; i <= numColumns; i++) {
     row.append(results.getString(i));
   }
   row.end();
 }