org.teiid.query.optimizer.xml
Class NameInSourceResolverVisitor

java.lang.Object
  extended by org.teiid.query.mapping.xml.MappingVisitor
      extended by org.teiid.query.optimizer.xml.NameInSourceResolverVisitor

public class NameInSourceResolverVisitor
extends MappingVisitor

This visitor resolves the "element" names on the mapping nodes to the planned sources defined at same or parent nodes.


Method Summary
static void resolveElements(MappingDocument doc, XMLPlannerEnvironment planEnv)
          Resolve all the "NameInSource" property nodes (element names), with the their results set queries.
 void visit(MappingAttribute attribute)
           
 void visit(MappingElement element)
           
 void visit(MappingSourceNode element)
           
 
Methods inherited from class org.teiid.query.mapping.xml.MappingVisitor
setAbort, shouldAbort, visit, visit, visit, visit, visit, visit, visit, visit, visit, walkAttributes, walkChildNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

visit

public void visit(MappingSourceNode element)
Overrides:
visit in class MappingVisitor

visit

public void visit(MappingAttribute attribute)
Overrides:
visit in class MappingVisitor

visit

public void visit(MappingElement element)
Overrides:
visit in class MappingVisitor

resolveElements

public static void resolveElements(MappingDocument doc,
                                   XMLPlannerEnvironment planEnv)
                            throws QueryMetadataException,
                                   TeiidComponentException
Resolve all the "NameInSource" property nodes (element names), with the their results set queries.

Parameters:
doc -
planEnv -
Throws:
QueryMetadataException
TeiidComponentException


Copyright © 2010. All Rights Reserved.