Getting Information About the Context of the Query

Invoke the method CustomElementsUtil.getQueryContext() to obtain an instance of the class QueryContext. This class provides methods to obtain:
  • The user name that executes the query that uses this function.
  • The set of roles granted to this user.
  • The Denodo database to which the user is connected when executing the query that uses this function.