org.apache.derby.iapi.sql.dictionary
Class PermissionsDescriptor
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.TupleDescriptor
-
- org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor
-
- All Implemented Interfaces:
- java.lang.Cloneable, Dependable, Provider
- Direct Known Subclasses:
- ColPermsDescriptor, PermDescriptor, RoutinePermsDescriptor, TablePermsDescriptor
public abstract class PermissionsDescriptor extends TupleDescriptor implements java.lang.Cloneable, Provider
This class is used by rows in the SYS.SYSTABLEPERMS, SYS.SYSCOLPERMS, and SYS.SYSROUTINEPERMS system tables.
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract booleancheckOwner(java.lang.String authorizationId)This method checks if the passed authorization id is same as the owner of the object on which this permission is defined.java.lang.Objectclone()abstract intgetCatalogNumber()java.lang.StringgetGrantee()java.lang.StringgetGrantor()UUIDgetObjectID()Get the provider's UUIDUUIDgetUUID()Gets the UUID of the table.booleanisPersistent()Is this provider persistent? A stored dependency will be required if both the dependent and provider are persistent.voidsetGrantee(java.lang.String grantee)voidsetUUID(UUID oid)Sets the UUID of the table-
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getDescriptorName, getDescriptorType
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.derby.catalog.Dependable
getClassType, getDependableFinder, getObjectName
-
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
getCatalogNumber
public abstract int getCatalogNumber()
-
setGrantee
public void setGrantee(java.lang.String grantee)
-
getGrantee
public final java.lang.String getGrantee()
-
getGrantor
public final java.lang.String getGrantor()
-
getUUID
public UUID getUUID()
Gets the UUID of the table.- Returns:
- The UUID of the table.
-
setUUID
public void setUUID(UUID oid)
Sets the UUID of the table- Parameters:
oid- The UUID of the table to be set in the descriptor
-
checkOwner
public abstract boolean checkOwner(java.lang.String authorizationId) throws StandardExceptionThis 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- Returns:
- boolean If passed authorization id is owner of the table
- Throws:
StandardException
-
getObjectID
public UUID getObjectID()
Get the provider's UUID- Specified by:
getObjectIDin interfaceDependable- Returns:
- The provider's UUID
-
isPersistent
public boolean isPersistent()
Is this provider persistent? A stored dependency will be required if both the dependent and provider are persistent.- Specified by:
isPersistentin interfaceDependable- Overrides:
isPersistentin classTupleDescriptor- Returns:
- boolean Whether or not this provider is persistent.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG