Here you can find the source of printCols(final ResultSetMetaData paymentTableResultSetMetaData, final String logging_prefix)
public static void printCols(final ResultSetMetaData paymentTableResultSetMetaData, final String logging_prefix) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSetMetaData; import java.sql.SQLException; public class Main { public static void printCols(final ResultSetMetaData paymentTableResultSetMetaData, final String logging_prefix) throws SQLException { System.out.println(logging_prefix); for (int i = 1; i <= paymentTableResultSetMetaData.getColumnCount(); i++) { // System.out.print(paymentTableResultSet.getString(i) + "\t"); // System.out.println(paymentTableResultSetMetaData.getColumnType(i) + "," + paymentTableResultSetMetaData.getColumnTypeName(i) + "," + paymentTableResultSetMetaData.isNullable(i)); System.out.print(paymentTableResultSetMetaData.getColumnName(i) + "\t"); }// ww w. j a v a 2s . c om System.out.println("\n"); } }