Module org.firebirdsql.jaybird
Package org.firebirdsql.jdbc.metadata

# Class GetColumnPrivileges

java.lang.Object
org.firebirdsql.jdbc.metadata.GetColumnPrivileges

public final class GetColumnPrivileges extends Object
Provides the implementation of `DatabaseMetaData.getColumnPrivileges(String, String, String, String)`.

This implementation returns all privileges, not just from the current user. The JDBC specification is not clear on this. Looking at the Schemata (SQL standard book 11) definition of the `COLUMN_PRIVILEGES` view, possibly this should be restricted to the current user and user `PUBLIC` (and maybe active roles). This may change in a future version.

Since:
  5
Author:
  Mark Rotteveel

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final DbMetadataMediator`
  `mediator`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static GetColumnPrivileges`
  `create(DbMetadataMediator mediator)`
  `ResultSet`
  `getColumnPrivileges(String table, String columnNamePattern)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### mediator

    protected final DbMetadataMediator mediator

- ## Method Details

  - ### getColumnPrivileges

    public ResultSet getColumnPrivileges(String table, String columnNamePattern) throws SQLException
    Throws:
      `SQLException`
    See Also:
      - `DatabaseMetaData.getColumnPrivileges(String, String, String, String)`

  - ### create

    public static GetColumnPrivileges create(DbMetadataMediator mediator)