Package org.teiid.query.sql.lang

Examples of org.teiid.query.sql.lang.Select


  @Test public void testPartlyQuotedElement2(){
    GroupSymbol g = new GroupSymbol("db.g"); //$NON-NLS-1$
    From from = new From();
    from.addGroup(g);

    Select select = new Select();
    ElementSymbol a = new ElementSymbol("db.g.a")//$NON-NLS-1$
    select.addSymbol(a);

    Query query = new Query();
    query.setSelect(select);
    query.setFrom(from);
View Full Code Here


  @Test public void testPartlyQuotedElement3(){
    GroupSymbol g = new GroupSymbol("db.g"); //$NON-NLS-1$
    From from = new From();
    from.addGroup(g);

    Select select = new Select();
    ElementSymbol a = new ElementSymbol("db.g.a")//$NON-NLS-1$
    select.addSymbol(a);

    Query query = new Query();
    query.setSelect(select);
    query.setFrom(from);
View Full Code Here

  @Test public void testStringLiteralLikeQuotedElement(){
    GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
    From from = new From();
    from.addGroup(g);

    Select select = new Select();
    select.addSymbol(new ElementSymbol("g\".\"a")); //$NON-NLS-1$

    Query query = new Query();
    query.setSelect(select);
    query.setFrom(from);
View Full Code Here

  @Test public void testStringLiteralLikeQuotedElement1(){
    GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
    From from = new From();
    from.addGroup(g);

    Select select = new Select();
    select.addSymbol(new ExpressionSymbol("expr", new Constant("g\".\"a"))); //$NON-NLS-1$ //$NON-NLS-2$

    Query query = new Query();
    query.setSelect(select);
    query.setFrom(from);
    ParseInfo info = new ParseInfo();
View Full Code Here

  @Test public void testQuotedAlias(){
    GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
    From from = new From();
    from.addGroup(g);

    Select select = new Select();
    AliasSymbol a = new AliasSymbol("select", new ElementSymbol("g.x"))//$NON-NLS-1$ //$NON-NLS-2$
    select.addSymbol(a);

    Query query = new Query();
    query.setSelect(select);
    query.setFrom(from);
View Full Code Here

    @Test public void testQuotedAlias2(){
        GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
        From from = new From();
        from.addGroup(g);

        Select select = new Select();
        AliasSymbol a = new AliasSymbol("year", new ElementSymbol("g.x"))//$NON-NLS-1$ //$NON-NLS-2$
        select.addSymbol(a);

        Query query = new Query();
        query.setSelect(select);
        query.setFrom(from);
View Full Code Here

    @Test public void testQuotedAlias3(){
        GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
        From from = new From();
        from.addGroup(g);

        Select select = new Select();
        AliasSymbol a = new AliasSymbol("some year", new ElementSymbol("g.x"))//$NON-NLS-1$ //$NON-NLS-2$
        select.addSymbol(a);

        Query query = new Query();
        query.setSelect(select);
        query.setFrom(from);
View Full Code Here

    @Test public void testReservedWordElement1(){
        GroupSymbol g = new GroupSymbol("g"); //$NON-NLS-1$
        From from = new From();
        from.addGroup(g);

        Select select = new Select();
        ElementSymbol a = new ElementSymbol("g.select")//$NON-NLS-1$
        select.addSymbol(a);

        Query query = new Query();
        query.setSelect(select);
        query.setFrom(from);
View Full Code Here

    @Test public void testReservedWordElement2() {
        GroupSymbol g = new GroupSymbol("newModel5.ResultSetDocument.MappingClasses.from.from.Query1InputSet"); //$NON-NLS-1$
        From from = new From();
        from.addGroup(g);

        Select select = new Select();
        ElementSymbol a = new ElementSymbol("newModel5.ResultSetDocument.MappingClasses.from.from.Query1InputSet.x")//$NON-NLS-1$
        select.addSymbol(a);

        Query query = new Query();
        query.setSelect(select);
        query.setFrom(from);
View Full Code Here

    @Test public void testReservedWordGroup1(){
        GroupSymbol g = new GroupSymbol("newModel5.ResultSetDocument.MappingClasses.from.from.Query1InputSet"); //$NON-NLS-1$
        From from = new From();
        from.addGroup(g);

        Select select = new Select();
        select.addSymbol(new AllSymbol());

        Query query = new Query();
        query.setSelect(select);
        query.setFrom(from);
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.lang.Select

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.