Package org.teiid.query.sql.symbol

Examples of org.teiid.query.sql.symbol.XMLForest


      f.setAttributes(new XMLAttributes(Arrays.asList(new DerivedColumn("val", new Constant("a")))));
      helpTestExpression("xmlelement(y, xmlattributes('a' as val))", "XMLELEMENT(NAME y, XMLATTRIBUTES('a' AS val))", f);
    }
   
    @Test public void testXmlForest() throws Exception {
      XMLForest f = new XMLForest(Arrays.asList(new DerivedColumn("table", new ElementSymbol("a"))));
      helpTestExpression("xmlforest(a as \"table\")", "XMLFOREST(a AS \"table\")", f);
    }
View Full Code Here


      Function f = new Function("xmlpi", new Expression[] {new Constant("a"), new ElementSymbol("val")});
      helpTestExpression("xmlpi(NAME a, val)", "xmlpi(NAME a, val)", f);
    }
   
    @Test public void testXmlNamespaces() throws Exception {
      XMLForest f = new XMLForest(Arrays.asList(new DerivedColumn("table", new ElementSymbol("a"))));
      f.setNamespaces(new XMLNamespaces(Arrays.asList(new XMLNamespaces.NamespaceItem(), new XMLNamespaces.NamespaceItem("http://foo", "x"))));
      helpTestExpression("xmlforest(xmlnamespaces(no default, 'http://foo' as x), a as \"table\")", "XMLFOREST(XMLNAMESPACES(NO DEFAULT, 'http://foo' AS x), a AS \"table\")", f);
    }
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.symbol.XMLForest

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.