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 TypeMethodDescriptionvoid
addDbViewScope
(IDtProject project, org.eclipse.xtext.scoping.IScope dbViewScope) void
clearDbViewScopes
(IDtProject project) ClearDbViewElement
scope for projectvoid
clearScopes
(String querySchemaText) Deletes all cached values ofIScope
by text ofQuerySchema
org.eclipse.xtext.scoping.IScope
getDbViewScope
(IDtProject project) org.eclipse.xtext.scoping.IScope
void
setDbViewScope
(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:IQlCachedScopeProvider
ClearDbViewElement
scope for project- Specified by:
clearDbViewScopes
in interfaceIQlCachedScopeProvider
- Parameters:
project
-IProject
for clearing cached scope, can't benull
-
addDbViewScope
Description copied from interface:IQlCachedScopeProvider
- Specified by:
addDbViewScope
in interfaceIQlCachedScopeProvider
- Parameters:
project
- actual project, can't benull
dbViewScope
-IScope
corresponding to theDbViewElement
, can't benull
-
getDbViewScope
Description copied from interface:IQlCachedScopeProvider
- Specified by:
getDbViewScope
in interfaceIQlCachedScopeProvider
- Parameters:
project
- actualIProject
, can't benull
- Returns:
IScope
corresponding to theDbViewElement
ornull
if 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:IQlCachedScopeProvider
Sets new value ofIScope
- Specified by:
setDbViewScope
in interfaceIQlCachedScopeProvider
- Parameters:
querySchemaText
- corresponding to theQuerySchema
- the first key for caching scope, can't benull
operatorText
- corresponding to theQuerySchemaOperator
- the second key for caching scope, can't benull
scope
-IScope
of the caching elements corresponding to the scope, can't benull
-
getScope
Description copied from interface:IQlCachedScopeProvider
- Specified by:
getScope
in interfaceIQlCachedScopeProvider
- Parameters:
querySchemaText
- corresponding to theQuerySchema
- the first key for caching scope, can't benull
operatorText
- corresponding to theQuerySchemaOperator
- the second key for caching scope, can't benull
- Returns:
IScope
of the caching elements corresponding to the scope, can benull
in case when there is no anything cached values
-
clearScopes
Description copied from interface:IQlCachedScopeProvider
Deletes all cached values ofIScope
by text ofQuerySchema
- Specified by:
clearScopes
in interfaceIQlCachedScopeProvider
- Parameters:
querySchemaText
- text ofQuerySchema
for deleting cachedIScope
, can't benull
-