Class TablePermsDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor
org.apache.derby.iapi.sql.dictionary.TablePermsDescriptor
- All Implemented Interfaces:
Cloneable, Dependable, Provider
This class describes a row in the SYS.SYSTABLEPERMS system table, which
stores the table permissions that have been granted but not revoked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate UUIDprivate Stringprivate StringFields inherited from class PermissionsDescriptor
oidFields inherited from interface 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
ConstructorsConstructorDescriptionTablePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID tableUUID) This constructor just sets up the key fields of a TablePermsDescriptorTablePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID tableUUID, String selectPriv, String deletePriv, String insertPriv, String updatePriv, String referencesPriv, String triggerPriv) TablePermsDescriptor(DataDictionary dd, UUID tablePermsUUID) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckOwner(String authorizationId) This method checks if the passed authorization id is same as the owner of the object on which this permission is defined.booleanintGet 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.Return the name of this Provider.inthashCode()toString()Methods inherited from class PermissionsDescriptor
clone, getGrantee, getGrantor, getObjectID, getUUID, isPersistent, keyEquals, keyHashCode, setGrantee, setUUIDMethods inherited from class TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, setDataDictionary
-
Field Details
-
tableUUID
-
tableName
-
selectPriv
-
deletePriv
-
insertPriv
-
updatePriv
-
referencesPriv
-
triggerPriv
-
-
Constructor Details
-
TablePermsDescriptor
public TablePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID tableUUID, String selectPriv, String deletePriv, String insertPriv, String updatePriv, String referencesPriv, String triggerPriv) throws StandardException - Throws:
StandardException
-
TablePermsDescriptor
public TablePermsDescriptor(DataDictionary dd, String grantee, String grantor, UUID tableUUID) throws StandardException This constructor just sets up the key fields of a TablePermsDescriptor- Throws:
StandardException
-
TablePermsDescriptor
- Throws:
StandardException
-
-
Method Details
-
getCatalogNumber
public int getCatalogNumber()- Specified by:
getCatalogNumberin classPermissionsDescriptor
-
getTableUUID
-
getSelectPriv
-
getDeletePriv
-
getInsertPriv
-
getUpdatePriv
-
getReferencesPriv
-
getTriggerPriv
-
toString
-
equals
-
hashCode
-
checkOwner
Description copied from class:PermissionsDescriptorThis 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:
checkOwnerin 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
-
getDependableFinder
Description copied from interface:DependableGet 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:
-