use of org.teiid.query.sql.symbol.Constant in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testVisitInsert2.
public void testVisitInsert2() {
Insert insert = new Insert();
insert.setGroup(exampleGroup(true, 0));
List values = new ArrayList();
// $NON-NLS-1$
values.add(new Constant("abc"));
// $NON-NLS-1$
values.add(new Constant("abc"));
insert.setValues(values);
helpTest(insert, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Constant in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testVisitMatchCriteria.
public void testVisitMatchCriteria() {
// $NON-NLS-1$
MatchCriteria mc = new MatchCriteria(exampleElement(true, 0), new Constant("abc"));
helpTest(mc, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Constant in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testVisitBetweenCriteria.
public void testVisitBetweenCriteria() {
BetweenCriteria bc = new BetweenCriteria(exampleElement(true, 0), new Constant(new Integer(1000)), new Constant(new Integer(2000)));
helpTest(bc, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Constant in project teiid by teiid.
the class TestStaticSymbolMappingVisitor method testVisitUpdate1.
public void testVisitUpdate1() {
Update update = new Update();
update.setGroup(exampleGroup(true, 0));
// $NON-NLS-1$
update.addChange(exampleElement(true, 0), new Constant("abc"));
// $NON-NLS-1$
update.addChange(exampleElement(true, 1), new Constant("abc"));
helpTest(update, getSymbolMap());
}
use of org.teiid.query.sql.symbol.Constant in project teiid by teiid.
the class TestSetCriteria method sample1.
public static final SetCriteria sample1() {
SetCriteria c1 = new SetCriteria();
// $NON-NLS-1$
c1.setExpression(new ElementSymbol("e1"));
List vals = new ArrayList();
// $NON-NLS-1$
vals.add(new Constant("a"));
// $NON-NLS-1$
vals.add(new Constant("b"));
c1.setValues(vals);
return c1;
}
Aggregations