Interface JDBCMetaDataBasedModelElementFinder.PrivilegedSessionProvider
- Enclosing class:
JDBCMetaDataBasedModelElementFinder
public static interface JDBCMetaDataBasedModelElementFinder.PrivilegedSessionProvider
Provides a session with elevated privileges for reading restricted schema metadata.
- Author:
- Ralf Wisser
-
Method Summary
Modifier and TypeMethodDescriptionaskForSessionWithPermissionToReadSchema(Session session, Table view, String schema, String tableName, ExecutionContext executionContext) Returns a session with permission to read the given schema, ornullif not available.
-
Method Details
-
askForSessionWithPermissionToReadSchema
Session askForSessionWithPermissionToReadSchema(Session session, Table view, String schema, String tableName, ExecutionContext executionContext) Returns a session with permission to read the given schema, ornullif not available.- Parameters:
session- the current sessionview- the view or table requiring elevated accessschema- the schema to accesstableName- the table name to accessexecutionContext- the execution context- Returns:
- a session with permission to read the schema, or
null
-