Package com._1c.g5.v8.dt.ql.resource
Class QlDerivedStateComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.resource.QlDerivedStateComputer
-
- All Implemented Interfaces:
org.eclipse.xtext.resource.IDerivedStateComputer
- Direct Known Subclasses:
QlDcsDerivedStateComputer
,RightQlDerivedStateComputer
public class QlDerivedStateComputer extends Object implements org.eclipse.xtext.resource.IDerivedStateComputer
ImplementationIDerivedStateComputer
for Ql language
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QlDerivedStateComputer.GetterObjectByType
Special class for creating lazy proxy for Qlclass
QlDerivedStateComputer.NotAllowedNameForTempTableProvider
Provider for name which not allowed as name forDbViewDescriptionTempTable
-
Constructor Summary
Constructors Constructor Description QlDerivedStateComputer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
computeDbView(AbstractQuerySchemaQuery query, org.eclipse.xtext.resource.DerivedStateAwareResource resource)
Computes all DbView for onequery
protected void
createDbviewDescriptionTempTable(CaseInsensitiveString name, QuerySchemaTable table)
CreatesDbViewDescriptionTempTable
byQuerySchemaTable
protected DbViewDef
createDbViewForEachQuery(QuerySchemaSelectQuery query)
Creates DbView for select queryprotected List<DbViewDef>
createDbViewForEachSource(QuerySchemaSource source, QlDerivedStateComputer.NotAllowedNameForTempTableProvider notAllowedNamesForTempTableProvider, List<DbViewDef> earlierCreatedDbViewSource)
Creates DbView for each source in 'from' sectionprotected void
createProxyForDbView(org.eclipse.emf.ecore.EObject object)
Creates proxy for all elements which haveDbViewElement
protected void
discardDbViewForEachQuery(AbstractQuerySchemaQuery eachQuery)
DiscardsDbView
for each queryprotected void
discardDbViewForEachSource(QuerySchemaSource source)
DiscardsDbView
for each sourcevoid
discardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource)
protected AliasComputer
getAliasComputer()
Gets object for computing aliasprotected Collection<CaseInsensitiveString>
getAllDbViewNamesWithSinglePart(org.eclipse.emf.ecore.EObject context)
Gets all DbView names with single part from scope by actual contextvoid
installDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource, boolean preLinkingPhase)
-
-
-
Method Detail
-
installDerivedState
public void installDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource, boolean preLinkingPhase)
- Specified by:
installDerivedState
in interfaceorg.eclipse.xtext.resource.IDerivedStateComputer
-
discardDerivedState
public void discardDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource resource)
- Specified by:
discardDerivedState
in interfaceorg.eclipse.xtext.resource.IDerivedStateComputer
-
createDbViewForEachSource
protected List<DbViewDef> createDbViewForEachSource(QuerySchemaSource source, QlDerivedStateComputer.NotAllowedNameForTempTableProvider notAllowedNamesForTempTableProvider, List<DbViewDef> earlierCreatedDbViewSource)
Creates DbView for each source in 'from' section- Parameters:
source
-QuerySchemaSource
notAllowedNamesForTempTableProvider
- provider for not allowed names forDbViewDescriptionTempTable
, cannot benull
earlierCreatedDbViewSource
- list of earlier created DbViewDef from source section, can't benull
- Returns:
- list of DbViewDef computed by
QuerySchemaSource
-
computeDbView
protected void computeDbView(AbstractQuerySchemaQuery query, org.eclipse.xtext.resource.DerivedStateAwareResource resource)
Computes all DbView for onequery
- Parameters:
queries
- processingQuerySchemaSelectQuery
resource
- ql grammarDerivedStateAwareResource
-
getAliasComputer
protected AliasComputer getAliasComputer()
Gets object for computing alias- Returns:
- object for computing alias
- See Also:
AliasComputer
-
createDbViewForEachQuery
protected DbViewDef createDbViewForEachQuery(QuerySchemaSelectQuery query)
Creates DbView for select query- Parameters:
query
-QuerySchemaSelectQuery
processing query- Returns:
DbViewDef
created DbView
-
createProxyForDbView
protected void createProxyForDbView(org.eclipse.emf.ecore.EObject object)
Creates proxy for all elements which haveDbViewElement
- Parameters:
object
- object for creating proxies, can't benull
-
discardDbViewForEachQuery
protected void discardDbViewForEachQuery(AbstractQuerySchemaQuery eachQuery)
DiscardsDbView
for each query- Parameters:
eachQuery
-QuerySchemaSelectQuery
-
discardDbViewForEachSource
protected void discardDbViewForEachSource(QuerySchemaSource source)
DiscardsDbView
for each source- Parameters:
source
-QuerySchemaSource
-
getAllDbViewNamesWithSinglePart
protected Collection<CaseInsensitiveString> getAllDbViewNamesWithSinglePart(org.eclipse.emf.ecore.EObject context)
Gets all DbView names with single part from scope by actual context- Parameters:
context
- actual context for getting scope ofDbViewElement
- Returns:
- collection of DbView names with single part, never
null
-
createDbviewDescriptionTempTable
protected void createDbviewDescriptionTempTable(CaseInsensitiveString name, QuerySchemaTable table)
CreatesDbViewDescriptionTempTable
byQuerySchemaTable
- Parameters:
name
- name of creating DbViewDescriptionTempTable, can't benull
table
- actualQuerySchemaTable
, can't benull
-
-