Search in sources :

Example 6 with SubquerySetCriteria

use of org.teiid.query.sql.lang.SubquerySetCriteria in project teiid by teiid.

the class TestStaticSymbolMappingVisitor method testVisitSubquerySetCriteria.

public void testVisitSubquerySetCriteria() {
    SubquerySetCriteria ssc = new SubquerySetCriteria();
    // $NON-NLS-1$
    ssc.setExpression(new Function("length", new Expression[] { exampleElement(true, 0) }));
    ssc.setCommand(new Query());
    helpTest(ssc, getSymbolMap());
}
Also used : Function(org.teiid.query.sql.symbol.Function) Query(org.teiid.query.sql.lang.Query) Expression(org.teiid.query.sql.symbol.Expression) SubquerySetCriteria(org.teiid.query.sql.lang.SubquerySetCriteria)

Example 7 with SubquerySetCriteria

use of org.teiid.query.sql.lang.SubquerySetCriteria in project teiid by teiid.

the class TestSubquerySetCriteria method testEquals3.

public void testEquals3() {
    SubquerySetCriteria c1 = example1();
    SubquerySetCriteria c2 = c1.clone();
    c2.setNegated(true);
    // $NON-NLS-1$
    assertFalse("Set criteria are not the same", c1.equals(c2));
}
Also used : SubquerySetCriteria(org.teiid.query.sql.lang.SubquerySetCriteria)

Aggregations

SubquerySetCriteria (org.teiid.query.sql.lang.SubquerySetCriteria)7 Query (org.teiid.query.sql.lang.Query)4 ElementSymbol (org.teiid.query.sql.symbol.ElementSymbol)3 CompareCriteria (org.teiid.query.sql.lang.CompareCriteria)2 From (org.teiid.query.sql.lang.From)2 Select (org.teiid.query.sql.lang.Select)2 Constant (org.teiid.query.sql.symbol.Constant)2 GroupSymbol (org.teiid.query.sql.symbol.GroupSymbol)2 Expression (org.teiid.query.sql.symbol.Expression)1 Function (org.teiid.query.sql.symbol.Function)1