Class DiagUtil


  • abstract class DiagUtil
    extends java.lang.Object
    Utility methods for the package of diagnostic vtis.
    • Constructor Summary

      Constructors 
      Constructor Description
      DiagUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void checkAccess()
      Raise an exception if we are running with SQL authorization turned on but the current user isn't the database owner.
      private static Context getContextOrNull​(java.lang.String contextID)
      Privileged lookup of a Context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiagUtil

        DiagUtil()
    • Method Detail

      • checkAccess

        static void checkAccess()
                         throws StandardException
        Raise an exception if we are running with SQL authorization turned on but the current user isn't the database owner. This method is used to restrict access to VTIs which disclose sensitive information. See DERBY-5395.
        Throws:
        StandardException
      • getContextOrNull

        private static Context getContextOrNull​(java.lang.String contextID)
        Privileged lookup of a Context. Must be private so that user code can't call this entry point.