org.apache.derby.iapi.sql.dictionary
Class RoutinePermsDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor
org.apache.derby.iapi.sql.dictionary.RoutinePermsDescriptor
- All Implemented Interfaces:
- java.lang.Cloneable, Dependable, Provider
public class RoutinePermsDescriptor
- extends PermissionsDescriptor
This class describes rows in the SYS.SYSROUTINEPERMS system table, which keeps track of the routine
(procedure and function) permissions that have been granted but not revoked.
| Fields inherited from interface org.apache.derby.catalog.Dependable |
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW |
|
Constructor Summary |
RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor)
This constructor just sets up the key fields of a RoutinePermsDescriptor. |
RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor,
UUID routineUUID)
|
RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor,
UUID routineUUID,
boolean hasExecutePermission)
|
RoutinePermsDescriptor(DataDictionary dd,
UUID routineePermsUUID)
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
routineUUID
private UUID routineUUID
routineName
private java.lang.String routineName
hasExecutePermission
private boolean hasExecutePermission
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor,
UUID routineUUID,
boolean hasExecutePermission)
throws StandardException
- Throws:
StandardException
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor,
UUID routineUUID)
throws StandardException
- Throws:
StandardException
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd,
java.lang.String grantee,
java.lang.String grantor)
throws StandardException
- This constructor just sets up the key fields of a RoutinePermsDescriptor.
- Throws:
StandardException
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd,
UUID routineePermsUUID)
throws StandardException
- Throws:
StandardException
getCatalogNumber
public int getCatalogNumber()
- Specified by:
getCatalogNumber in class PermissionsDescriptor
getRoutineUUID
public UUID getRoutineUUID()
getHasExecutePermission
public boolean getHasExecutePermission()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
- Returns:
- true iff the key part of this permissions descriptor equals the key part of another permissions
descriptor.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
- Returns:
- the hashCode for the key part of this permissions descriptor
checkOwner
public boolean checkOwner(java.lang.String authorizationId)
throws StandardException
- Description copied from class:
PermissionsDescriptor
- This method checks if the passed authorization id is same as the owner
of the object on which this permission is defined. This method gets
called by create view/constraint/trigger to see if this permission
needs to be saved in dependency system for the view/constraint/trigger.
If the same user is the owner of the the object being accessed and the
newly created object, then no need to keep this privilege dependency
- Specified by:
checkOwner in class PermissionsDescriptor
- Returns:
- boolean If passed authorization id is owner of the table
- Throws:
StandardException- See Also:
PermissionsDescriptor.checkOwner(java.lang.String)
getObjectName
public java.lang.String getObjectName()
- Return the name of this Provider. (Useful for errors.)
- Returns:
- String The name of this provider.
getClassType
public java.lang.String getClassType()
- Get the provider's type.
- Returns:
- char The provider's type.
getDependableFinder
public DependableFinder getDependableFinder()
- Description copied from interface:
Dependable
- Get an object which can be written to disk and which,
when read from disk, will find or reconstruct this in-memory
Dependable.
- Returns:
- the stored form of this provider
- See Also:
Dependable.getDependableFinder()
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.