Package org.teiid.query.sql.symbol

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


        create.setElementSymbolsAsColumns(columns);
        helpTest("Create local TEMPORARY table tempTable (c1 varchar, c2 tinyint, c3 smallint, c4 real, c5 decimal)", "CREATE LOCAL TEMPORARY TABLE tempTable (c1 varchar, c2 tinyint, c3 smallint, c4 real, c5 decimal)", create); //$NON-NLS-1$
    }
   
    @Test public void testXmlElement() throws Exception {
      XMLElement f = new XMLElement("table", Arrays.asList((Expression)new Constant("x")));
      helpTestExpression("xmlelement(name \"table\", 'x')", "XMLELEMENT(NAME \"table\", 'x')", f);
    }
View Full Code Here


      XMLElement f = new XMLElement("table", Arrays.asList((Expression)new Constant("x")));
      helpTestExpression("xmlelement(name \"table\", 'x')", "XMLELEMENT(NAME \"table\", 'x')", f);
    }

    @Test public void testXmlElement1() throws Exception {
      XMLElement f = new XMLElement("table", Arrays.asList((Expression)new Constant("x")));
      helpTestExpression("xmlelement(\"table\", 'x')", "XMLELEMENT(NAME \"table\", 'x')", f);
    }
View Full Code Here

      XMLElement f = new XMLElement("table", Arrays.asList((Expression)new Constant("x")));
      helpTestExpression("xmlelement(\"table\", 'x')", "XMLELEMENT(NAME \"table\", 'x')", f);
    }
   
    @Test public void testXmlElementWithAttributes() throws Exception {
      XMLElement f = new XMLElement("y", new ArrayList<Expression>());
      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);
    }
View Full Code Here

TOP

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

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.