Top Description Constructors Methods
org.apache.derby.diag

pack-priv abstract Class DiagUtil

extends Object
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.Context, .ContextService, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.dictionary.DataDictionary

Utility methods for the package of diagnostic vtis.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv 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(final String contextID)

Must be private so that user code can't call this entry point.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DiagUtilback to summary
pack-priv DiagUtil()

Method Detail

checkAccessback to summary
pack-priv 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.

getContextOrNullback to summary
private static Context getContextOrNull(final String contextID)

Must be private so that user code can't call this entry point.