Code example for ResultSet

Methods: getMetaData

0
    } 
 
    @Override 
    public String getColumnName(int columnIndex) {
        try { 
            ResultSetMetaData metaData = rs.getMetaData();
            String name = metaData.getColumnName(columnIndex);
            return name;
        } catch (SQLException e) {
            throw new RuntimeException(e);
        } 
    } 
 
    @Override 
    public String[] getColumnNames() {
        throw new RuntimeException("not supported");
    } 
 
    @Override 
    public int getColumnCount() { 
        try {