Package org.teiid.query.mapping.xml

Examples of org.teiid.query.mapping.xml.Navigator


       
        // we should expect to fail
        doc.acceptVisitor(new NameValidator(false));
       
        doc = SourceNodeGenaratorVisitor.extractSourceNodes(doc);
        doc.acceptVisitor(new Navigator(true, new SourceFixer()));
        NameInSourceResolverVisitor.resolveElements(doc, env);
       
        // now we pass
        doc.acceptVisitor(new NameValidator(true));       
    }
View Full Code Here


     * @param doc
     * @return
     */
    public static MappingDocument extractSourceNodes(MappingDocument doc) {
        SourceNodeGenaratorVisitor real = new SourceNodeGenaratorVisitor();
        doc.acceptVisitor(new Navigator(true, real));
        return doc;
    }
View Full Code Here

   
    private static void planWalk(MappingDocument doc, MappingVisitor visitor)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {
   
        try {
            Navigator walker = new Navigator(true, visitor);
            doc.acceptVisitor(walker);
        } catch (TeiidRuntimeException e) {
            if (e.getCause() instanceof QueryPlannerException) {
                throw (QueryPlannerException)e.getCause();
            }          
View Full Code Here

        }
    }
   
    public static MappingDocument execute(MappingDocument doc) {
        HandleNillableVisitor visitor = new HandleNillableVisitor();
        doc.acceptVisitor(new Navigator(true, visitor));
        return doc;
    }   
View Full Code Here

   
    private static void planWalk(MappingDocument doc, MappingVisitor visitor)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {
       
        try {
            Navigator walker = new Navigator(true, visitor);
            doc.acceptVisitor(walker);
        } catch (TeiidRuntimeException e) {
            if (e.getCause() instanceof QueryPlannerException) {
                throw (QueryPlannerException)e.getCause();
            }
View Full Code Here

    public static void validateAndCollectCriteriaElements(MappingDocument doc, XMLPlannerEnvironment planEnv)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {
       
        try {
            ValidateMappedCriteriaVisitor visitor = new ValidateMappedCriteriaVisitor(planEnv);
            doc.acceptVisitor(new Navigator(true, visitor));
        } catch (TeiidRuntimeException e) {
            if (e.getCause() instanceof QueryPlannerException) {
                throw (QueryPlannerException)e.getCause();
            }
            else if (e.getCause() instanceof QueryMetadataException) {
View Full Code Here

        throws QueryMetadataException, TeiidComponentException {

        NameInSourceResolverVisitor real = new NameInSourceResolverVisitor(planEnv);
       
        try {
            MappingVisitor visitor = new Navigator(true, real);
            doc.acceptVisitor(visitor);
        } catch (TeiidRuntimeException e) {
            if (e.getCause() instanceof QueryMetadataException) {
                throw (QueryMetadataException)e.getCause();
            }
View Full Code Here

        }
    }
       
    public static MappingDocument markExcludedNodes(MappingDocument doc, HashSet keepNodes) {
        MarkExcludeVisitor visitor = new MarkExcludeVisitor(keepNodes);
        doc.acceptVisitor(new Navigator(true, visitor));
        return doc;
    }
View Full Code Here

      
    private static void planWalk(MappingDocument doc, MappingVisitor visitor)
        throws QueryPlannerException, QueryMetadataException, TeiidComponentException {
   
        try {
            Navigator walker = new Navigator(true, visitor) {
               
                /*
                 * Special walking of children so that we can safely remove nodes
                 */
                @Override
View Full Code Here

                if (baseNode.getStagingTables() != null) {
                    tables.addAll(baseNode.getStagingTables());
                }
            }
        };
        doc.acceptVisitor(new Navigator(true, visitor));
        return tables;
    }
View Full Code Here

TOP

Related Classes of org.teiid.query.mapping.xml.Navigator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.