Class DbViewElementSource

  • public class DbViewElementSource
    extends Object
    Type-mutable DbViewElement source. It's used to work with type-changable DbViewElement without the overhead of excessive cloning
    • Constructor Detail

      • DbViewElementSource

        public DbViewElementSource​(DbViewElement source)
        Constructs an instance using provided source DbViewElement
        source - The source. May not be null
    • Method Detail

      • getFieldsByTypeDescription

        public static List<DbViewElementSource> getFieldsByTypeDescription​(org.eclipse.emf.ecore.EObject context,
                                                                           TypeDescription typeDescription)
        Returns fields provided by type description or empty list.
        context - the context object to figure out execution scope
        typeDescription - the TypeDescription (may be null)
        fields from dbviews provided by field types or empty list.
      • resolve

        public static void resolve​(DbViewElementSource dbView,
                                   org.eclipse.emf.ecore.EObject semanticObject)
        Resolves given DbViewElementSource if possible
        dbView - The DbViewElementSource to resolve. May be null
        semanticObject - The object to use as a resolution context. May not be null
      • eContainer

        public org.eclipse.emf.ecore.EObject eContainer()
        Gets the eContainer of the original DbViewElement
        The eContainer of the original DbViewElement. May be null in case of cloning
      • eContainingFeature

        public org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
        Gets the eContainingFeature of the original DbViewElement
        The eContainingFeature of the original DbViewElement
      • eGet

        public Object eGet​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Gets the feature value from the original DbViewElement
        feature - The feature to get value for. May not be null
        The value of the feature. May be null
      • getMdObject

        public org.eclipse.emf.ecore.EObject getMdObject()
        Gets the associated MdObject from the original DbViewElement
        The associated MdObject. May be null
      • getName

        public String getName()
        Gets the name of the original DbViewElement
        The name if present. May be null
      • getNameRu

        public String getNameRu()
        Gets the russion name variant of the original DbViewElement
        The name if present. May be null
      • resolve

        public void resolve​(org.eclipse.emf.ecore.EObject semanticObject)
        Resolves the underlying source
        semanticObject - The context object to use during the resoltion. May not be null