Interface IQlCachedScopeProvider

  • All Known Implementing Classes:
    QlCachedScopeProvider

    public interface IQlCachedScopeProvider
    Special provider for caching values of IScope getting from QlScopeProvider.
    This class provides only values of IScope depending from ql query text
    • Method Detail

      • clearDbViewScopes

        void clearDbViewScopes​(IDtProject project)
        Clear DbViewElement scope for project
        Parameters:
        project - IProject for clearing cached scope, can't be null
      • clearScopes

        void clearScopes​(String querySchemaText)
        Deletes all cached values of IScope by text of QuerySchema
        Parameters:
        querySchemaText - text of QuerySchema for deleting cached IScope, can't be null
      • getScope

        org.eclipse.xtext.scoping.IScope getScope​(String querySchemaText,
                                                  String operatorText)
        Gets cached value of IScope by text presentation of QuerySchema and QuerySchemaOperator
        Parameters:
        querySchemaText - corresponding to the QuerySchema - the first key for caching scope, can't be null
        operatorText - corresponding to the QuerySchemaOperator - the second key for caching scope, can't be null
        Returns:
        IScope of the caching elements corresponding to the scope, can be null in case when there is no anything cached values
      • setDbViewScope

        void setDbViewScope​(String querySchemaText,
                            String operatorText,
                            org.eclipse.xtext.scoping.IScope scope)
        Sets new value of IScope
        Parameters:
        querySchemaText - corresponding to the QuerySchema - the first key for caching scope, can't be null
        operatorText - corresponding to the QuerySchemaOperator - the second key for caching scope, can't be null
        scope - IScope of the caching elements corresponding to the scope, can't be null
      • addDbViewScope

        void addDbViewScope​(IDtProject project,
                            org.eclipse.xtext.scoping.IScope dbViewScope)
        Adds new value of IScope containing DbViewElement corresponding to the MdObject
        Parameters:
        project - actual project, can't be null
        dbViewScope - IScope corresponding to the DbViewElement, can't be null
      • getDbViewScope

        org.eclipse.xtext.scoping.IScope getDbViewScope​(IDtProject project)
        Gets actual IScope corresponding to the DbViewElement by IProject
        Parameters:
        project - actual IProject, can't be null
        Returns:
        IScope corresponding to the DbViewElement or null if scope wasn't cached for this project