Examples of FromClause


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

  public static JoinPredicate example(JoinType joinType, String joinOnElement) {
    JoinPredicate jp = new JoinPredicate();

    GroupSymbol g1 = new GroupSymbol("m.g1"); //$NON-NLS-1$
    GroupSymbol g2 = new GroupSymbol("m.g2"); //$NON-NLS-1$
    FromClause lc = new UnaryFromClause(g1);
    FromClause rc = new UnaryFromClause(g2);

    Expression le = new ElementSymbol("m.g1." + joinOnElement); //$NON-NLS-1$
    Expression re = new ElementSymbol("m.g2." + joinOnElement); //$NON-NLS-1$
    Criteria c1 = new CompareCriteria(le, CompareCriteria.EQ, re);
   
View Full Code Here

Examples of org.yaac.server.egql.FromClause

  }
 
  @Test
  public void testMulti() throws Exception {
    String inputStr = "from a, b, c";
    FromClause actual = TestUtil.parser(inputStr).from_clause().e;
    FromClause expected = new FromClause().add(
        new FromEntity("a")).add(new FromEntity("b")).add(new FromEntity("c"));
    Assert.assertEquals(expected, actual);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.