use of com.dailystudio.dataobject.DoubleColumn in project devbricks by dailystudio.
the class OrderingTokenTest method testWithOperation.
public void testWithOperation() {
Column column1 = null;
column1 = new IntegerColumn("intVal");
assertNotNull(column1);
Column column2 = null;
column2 = new DoubleColumn("doubleVal");
assertNotNull(column2);
Column column3 = null;
column3 = new LongColumn("longVal");
assertNotNull(column3);
Column column4 = null;
column4 = new TextColumn("textVal");
assertNotNull(column4);
assertEquals(new QueryToken("intVal, doubleVal, longVal, textVal"), column1.groupBy().with(column2.groupBy()).with(column3.groupBy()).with(column4.groupBy()));
}
use of com.dailystudio.dataobject.DoubleColumn in project devbricks by dailystudio.
the class ExpressionTokenTest method testSamples.
public void testSamples() {
Template templ = new Template();
assertNotNull(templ);
templ.addColumn(new IntegerColumn("_id", false, true));
templ.addColumn(new IntegerColumn("intValue"));
templ.addColumn(new DoubleColumn("doubleValue"));
templ.addColumn(new TextColumn("textValue"));
assertEquals(new QueryToken("( intValue > 1000 ) AND ( intValue < 2000 )"), templ.getColumn("intValue").gt(1000).and(templ.getColumn("intValue").lt(2000)));
}
use of com.dailystudio.dataobject.DoubleColumn in project devbricks by dailystudio.
the class QueryObject method initMembers.
private void initMembers() {
final Template templ = getTemplate();
templ.addColumn(new IntegerColumn("_id", false, true));
templ.addColumn(new IntegerColumn("intValue"));
templ.addColumn(new DoubleColumn("doubleValue"));
templ.addColumn(new TextColumn("textValue"));
}
Aggregations