Class TablePermsDescriptor

All Implemented Interfaces:
Cloneable, Dependable, Provider

public class TablePermsDescriptor extends PermissionsDescriptor
This class describes a row in the SYS.SYSTABLEPERMS system table, which stores the table permissions that have been granted but not revoked.
  • Field Details

    • tableUUID

      private UUID tableUUID
    • tableName

      private String tableName
    • selectPriv

      private String selectPriv
    • deletePriv

      private String deletePriv
    • insertPriv

      private String insertPriv
    • updatePriv

      private String updatePriv
    • referencesPriv

      private String referencesPriv
    • triggerPriv

      private String triggerPriv
  • Constructor Details

  • Method Details

    • getCatalogNumber

      public int getCatalogNumber()
      Specified by:
      getCatalogNumber in class PermissionsDescriptor
    • getTableUUID

      public UUID getTableUUID()
    • getSelectPriv

      public String getSelectPriv()
    • getDeletePriv

      public String getDeletePriv()
    • getInsertPriv

      public String getInsertPriv()
    • getUpdatePriv

      public String getUpdatePriv()
    • getReferencesPriv

      public String getReferencesPriv()
    • getTriggerPriv

      public String getTriggerPriv()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class 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 Object
      Returns:
      the hashCode for the key part of this permissions descriptor
    • checkOwner

      public boolean checkOwner(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:
    • getObjectName

      public String getObjectName()
      Return the name of this Provider. (Useful for errors.)
      Returns:
      String The name of this provider.
    • getClassType

      public 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: