| Access | Constructor and Description |
|---|---|
| public | StatementTablePermission(UUID
UUID of the table tableUUID, int Access privilege requested privType)Constructor for StatementTablePermission. |
| Modifier and Type | Method and Description |
|---|---|
| public void | check(LanguageConnectionContext
LanguageConnectionContext lcc, boolean forGrant, Activation activation for statement needing check activation)Implements abstract org.
|
| public boolean | Returns: true if matchAnother instance of StatementPermission obj)Overrides java. Routine to check if another instance of access descriptor matches this. |
| public PermissionsDescriptor | getPermissionDescriptor(String
AuthorizationId authid, DataDictionary DataDictionary dd)Implements abstract org. Get the PermissionsDescriptor for the passed authorization id for this object. |
| public String | |
| public int | |
| protected TableDescriptor | |
| public UUID | |
| public int | |
| protected boolean | hasPermissionOnTable(LanguageConnectionContext
the current language connection context lcc, Activation the activation of ps activation, boolean true if FOR GRANT is required forGrant, ExecPreparedStatement the prepared statement for which we are checking necessary
privileges ps)Check if current session has permission on the table (current user, PUBLIC or role) and, if applicable, register a dependency of ps on the current role. |
| protected boolean | |
| public String |
| privType | back to summary |
|---|---|
| pack-priv int privType | |
| tableUUID | back to summary |
|---|---|
| pack-priv UUID tableUUID | |
| StatementTablePermission | back to summary |
|---|---|
| public StatementTablePermission(UUID tableUUID, int privType) Constructor for StatementTablePermission. Creates an instance of table permission requested for the given access.
| |
| check | back to summary |
|---|---|
| public void check(LanguageConnectionContext lcc, boolean forGrant, Activation activation) throws StandardException Implements abstract org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Routine to check if another instance of access descriptor matches this. Used to ensure only one access descriptor for a table of given privilege is created. Otherwise, every column reference from a table may create a descriptor for that table.
| |
| getPermissionDescriptor | back to summary |
|---|---|
| public PermissionsDescriptor getPermissionDescriptor(String authid, DataDictionary dd) throws StandardException Implements abstract org. Doc from org. Get the PermissionsDescriptor for the passed authorization id for this object. This method gets called during the execution phase of create view/constraint/trigger. The return value of this method is saved in dependency system to keep track of views/constraints/triggers dependencies on required permissions. This happens in execution phase after it has been established that passed authorization id has all the permissions it needs to create that view/constraint/trigger. Which means that we can only get to writing into dependency system once all the required privileges are confirmed.
| |
| getPrivName | back to summary |
|---|---|
| public String getPrivName() Return privilege needed for this access as string
| |
| getPrivType | back to summary |
|---|---|
| public int getPrivType() Return privilege access requested for this access descriptor
| |
| getTableDescriptor | back to summary |
|---|---|
| protected TableDescriptor getTableDescriptor(DataDictionary dd) throws StandardException | |
| getTableUUID | back to summary |
|---|---|
| public UUID getTableUUID() Return table UUID for this access descriptor
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Return hash code for this instance
| |
| hasPermissionOnTable | back to summary |
|---|---|
| protected boolean hasPermissionOnTable(LanguageConnectionContext lcc, Activation activation, boolean forGrant, ExecPreparedStatement ps) throws StandardException Check if current session has permission on the table (current user, PUBLIC or role) and, if applicable, register a dependency of ps on the current role.
| |
| oneAuthHasPermissionOnTable | back to summary |
|---|---|
| protected boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) throws StandardException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |