Java SQL Table Column getColumnName(ResultSetMetaData meta, int column)

Here you can find the source of getColumnName(ResultSetMetaData meta, int column)

Description

get Column Name

License

LGPL

Declaration

public static String getColumnName(ResultSetMetaData meta, int column) throws SQLException 

Method Source Code

//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);
        }
    }
}

Related

  1. getColumnDisplaySize(int col, ResultSetMetaData rsmd)
  2. getColumnIndexFromColumnName(ResultSetMetaData metaData, String columnName)
  3. getColumnLabelMap(ResultSet resultSet)
  4. getColumnMetaData(Connection conn, String table, String column)
  5. getColumnName(boolean isShowRowNum, ResultSet rs)
  6. getColumnNames(final ResultSet resultSet)
  7. getColumnNames(ResultSet resultSet_)
  8. getColumnNames(ResultSet rs)
  9. getColumnNames(ResultSet rs)