Here you can find the source of getColumnName(ResultSetMetaData meta, int column)
public static String getColumnName(ResultSetMetaData meta, int column) throws SQLException
//package com.java2s; //License from project: LGPL import java.sql.ResultSetMetaData; import java.sql.SQLException; public class Main { public static String getColumnName(ResultSetMetaData meta, int column) throws SQLException { try {/*from w ww . ja va 2 s. co m*/ return meta.getColumnLabel(column); } catch (SQLException e) { return meta.getColumnName(column); } } }