Package org.mule.common.query

Examples of org.mule.common.query.Query


    public void queryTranslator() throws Exception {
      FieldComparation name = new FieldComparation(new EqualsOperator(), new Field("name", "java.lang.String"), new org.mule.common.query.expression.StringValue("mariano"));
      FieldComparation age = new FieldComparation(new LessOperator(), new Field("age", "int"), new IntegerValue(30));
      And and = new And(name, age);
     
      Query query = mock(Query.class);
      when(query.getFilterExpression()).thenReturn(and);
     
      String nativeQuery = this.connector.toNativeQuery(query);
      assertEquals(nativeQuery, "eq(name,'mariano'), lt(age,30)");
    }
View Full Code Here

TOP

Related Classes of org.mule.common.query.Query

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.