| java.lang.Object org.apache.derby.iapi.sql.dictionary.StatementPermission org.apache.derby.iapi.sql.dictionary.StatementTablePermission org.apache.derby.iapi.sql.dictionary.StatementColumnPermission
StatementColumnPermission | public class StatementColumnPermission extends StatementTablePermission (Code) | | This class describes a column permission used (required) by a statement.
|
StatementColumnPermission | public StatementColumnPermission(UUID tableUUID, int privType, FormatableBitSet columns)(Code) | | Constructor for StatementColumnPermission. Creates an instance of column permission requested
for the given access.
Parameters: tableUUID - UUID of the table Parameters: privType - Access privilege requested Parameters: columns - List of columns |
equals | public boolean equals(Object obj)(Code) | | Method to check if another instance of column access descriptor matches this.
Used to ensure only one access descriptor for a table/columns of given privilege is created.
Parameters: obj - Another instance of StatementPermission true if match |
getColumns | public FormatableBitSet getColumns()(Code) | | Return list of columns that need access
FormatableBitSet of columns |
getPUBLIClevelColPermsDescriptor | public PermissionsDescriptor getPUBLIClevelColPermsDescriptor(String authid, DataDictionary dd) throws StandardException(Code) | | This method gets called in execution phase after it is established that
all the required privileges exist for the given sql. This method gets
called by create view/trigger/constraint to record their dependency on
various privileges.
Special code is required to track column level privileges.
It is possible that some column level privileges are available to the
passed authorizer id but the rest required column level privileges
are available at PUBLIC level. In this method, we check if all the
required column level privileges are found for the passed authorizer.
If yes, then simply return null, indicating that no dependency is
required at PUBLIC level, because all the required privileges were found
at the user level. But if some column level privileges are not
available at user level, then they have to exist at the PUBLIC
level when this method gets called.
|
|
|