Package com._1c.g5.v8.dt.ql.scoping
Class QlCachedScopeProvider
java.lang.Object
com._1c.g5.v8.dt.ql.scoping.QlCachedScopeProvider
- All Implemented Interfaces:
IQlCachedScopeProvider
Special provider for caching values of
This class provides only values of
IScope getting from QlScopeProvider. This class provides only values of
IScope depending from ql query text-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDbViewScope(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope) voidclearDbViewScopes(IDtProject project) ClearDbViewElementscope for projectvoidclearScopes(String querySchemaText) Deletes all cached values ofIScopeby text ofQuerySchemaorg.eclipse.xtext.scoping.IScopegetDbViewScope(IDtProject project) org.eclipse.xtext.scoping.IScopevoidsetDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope) Sets new value ofIScope
-
Constructor Details
-
QlCachedScopeProvider
public QlCachedScopeProvider()
-
-
Method Details
-
clearDbViewScopes
Description copied from interface:IQlCachedScopeProviderClearDbViewElementscope for project- Specified by:
clearDbViewScopesin interfaceIQlCachedScopeProvider- Parameters:
project-IProjectfor clearing cached scope, can't benull
-
addDbViewScope
Description copied from interface:IQlCachedScopeProvider- Specified by:
addDbViewScopein interfaceIQlCachedScopeProvider- Parameters:
project- actual project, can't benulldbViewScope-IScopecorresponding to theDbViewElement, can't benull
-
getDbViewScope
Description copied from interface:IQlCachedScopeProvider- Specified by:
getDbViewScopein interfaceIQlCachedScopeProvider- Parameters:
project- actualIProject, can't benull- Returns:
IScopecorresponding to theDbViewElementornullif scope wasn't cached for this project
-
setDbViewScope
public void setDbViewScope(String querySchemaText, String operatorText, org.eclipse.xtext.scoping.IScope scope) Description copied from interface:IQlCachedScopeProviderSets new value ofIScope- Specified by:
setDbViewScopein interfaceIQlCachedScopeProvider- Parameters:
querySchemaText- corresponding to theQuerySchema- the first key for caching scope, can't benulloperatorText- corresponding to theQuerySchemaOperator- the second key for caching scope, can't benullscope-IScopeof the caching elements corresponding to the scope, can't benull
-
getScope
Description copied from interface:IQlCachedScopeProvider- Specified by:
getScopein interfaceIQlCachedScopeProvider- Parameters:
querySchemaText- corresponding to theQuerySchema- the first key for caching scope, can't benulloperatorText- corresponding to theQuerySchemaOperator- the second key for caching scope, can't benull- Returns:
IScopeof the caching elements corresponding to the scope, can benullin case when there is no anything cached values
-
clearScopes
Description copied from interface:IQlCachedScopeProviderDeletes all cached values ofIScopeby text ofQuerySchema- Specified by:
clearScopesin interfaceIQlCachedScopeProvider- Parameters:
querySchemaText- text ofQuerySchemafor deleting cachedIScope, can't benull
-