class JcrResultSetMetaData implements ResultSetMetaData {

    @Override
    public String getColumnLabel( int column ) throws SQLException {
        try {
            return results.getColumnNames()[column - 1]; // column value is 1-based
        } catch (RepositoryException e) {
            throw new SQLException(e.getLocalizedMessage(), e);
        }
    }

    protected  JcrResultSetMetaData( JcrConnection connection,
                                    QueryResult results );

}