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:
Cloneable
,Dependable
,Provider
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.
-
Field Summary
FieldsFields inherited from class org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor
oid
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
ConstructorsConstructorDescriptionRoutinePermsDescriptor
(DataDictionary dd, String grantee, String grantor) This constructor just sets up the key fields of a RoutinePermsDescriptor.RoutinePermsDescriptor
(DataDictionary dd, String grantee, String grantor, UUID routineUUID) RoutinePermsDescriptor
(DataDictionary dd, String grantee, String grantor, UUID routineUUID, boolean hasExecutePermission) RoutinePermsDescriptor
(DataDictionary dd, UUID routineePermsUUID) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkOwner
(String authorizationId) This method checks if the passed authorization id is same as the owner of the object on which this permission is defined.boolean
int
Get the provider's type.Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.boolean
Return the name of this Provider.int
hashCode()
toString()
Methods inherited from class org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor
clone, getGrantee, getGrantor, getObjectID, getUUID, isPersistent, keyEquals, keyHashCode, setGrantee, setUUID
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, setDataDictionary
-
Field Details
-
routineUUID
-
routineName
-
hasExecutePermission
private boolean hasExecutePermission
-
-
Constructor Details
-
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID routineUUID, boolean hasExecutePermission) throws StandardException - Throws:
StandardException
-
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID routineUUID) throws StandardException - Throws:
StandardException
-
RoutinePermsDescriptor
public RoutinePermsDescriptor(DataDictionary dd, String grantee, String grantor) throws StandardException This constructor just sets up the key fields of a RoutinePermsDescriptor.- Throws:
StandardException
-
RoutinePermsDescriptor
- Throws:
StandardException
-
-
Method Details
-
getCatalogNumber
public int getCatalogNumber()- Specified by:
getCatalogNumber
in classPermissionsDescriptor
-
getRoutineUUID
-
getHasExecutePermission
public boolean getHasExecutePermission() -
toString
-
equals
-
hashCode
public int hashCode() -
checkOwner
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 classPermissionsDescriptor
- Returns:
- boolean If passed authorization id is owner of the table
- Throws:
StandardException
- See Also:
-
getObjectName
Return the name of this Provider. (Useful for errors.)- Returns:
- String The name of this provider.
-
getClassType
Get the provider's type.- Returns:
- char The provider's type.
-
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:
-