Interface IInnerFieldsFromSourceSectionFinder

All Known Implementing Classes:
DcsInnerFieldsFromSourceSectionFinder, InnerFieldsFromSourceSectionFinder

public interface IInnerFieldsFromSourceSectionFinder
Special finder for inner fields of tables from source section of the query
  • Method Details

    • getInnerFieldsDescription

      Collection<org.eclipse.xtext.resource.IEObjectDescription> getInnerFieldsDescription(org.eclipse.emf.ecore.EObject context, List<QuerySchemaSource> sources)
      Gets descriptions of all inner fields from list of QuerySchemaSource
      Parameters:
      context - abstract object containing list of QuerySchemaSource, cannot be null
      Returns:
      collection of the IEObjectDescription of inner fields from source section
    • getInnerFieldsDescription

      Collection<org.eclipse.xtext.resource.IEObjectDescription> getInnerFieldsDescription(QuerySchemaOperator operator)
      Gets descriptions of all inner fields from source section of operator
      Parameters:
      operator - QuerySchemaOperator with source section, cannot be null
      Returns:
      collection of the IEObjectDescription of inner fields from source section
    • getTableParameterFields

      Collection<org.eclipse.xtext.resource.IEObjectDescription> getTableParameterFields(org.eclipse.emf.ecore.EObject context)
      Gets descriptions of all fields for parameter of source table
      Parameters:
      context - context object from parameter of source table, each parameter has own set of allowed fields, cannot be null
      Returns:
      collection of the IEObjectDescription fields for parameter of source table, never null
    • isAmbiguousField

      boolean isAmbiguousField(QuerySchemaOperator operator, DbViewElement field)
      Checks that source section of the operator has another (not equals to field) field with the same name
      Parameters:
      operator - QuerySchemaOperator with source section, cannot be null
      field - checking field, cannot be null
      Returns:
      true if source section of the operator has another (not equals to field) field with the same name, false otherwise
    • isInnerField

      boolean isInnerField(QuerySchemaOperator operator, DbViewElement field)
      Checks that source section of the operator has inner field equals to field
      Parameters:
      operator - QuerySchemaOperator with source section, cannot be null
      field - checking field, cannot be null
      Returns:
      true that source section of the operator has inner field equals to field, false otherwise
    • getSourceAlias

      Gets all alias from QuerySchemaOperator
      Parameters:
      operator - QuerySchemaOperator for getting alias, cannot be null
      Returns:
      collection of alias from QuerySchemaOperator, never null