Package com.aichamorro.dal.dataquery

Examples of com.aichamorro.dal.dataquery.DataQueryStatement$Iterator


   
    assertEquals("(NOT (a=1 OR b=2))", adapter.statementAdapter(stmnt));
  }
 
  public void testNestedNot() {
    DataQueryStatement stmnt = not(not(not(not(not("b=1")))));
   
    assertEquals("(NOT (NOT (NOT (NOT (NOT b=1)))))", adapter.statementAdapter(stmnt));
  }
View Full Code Here


   
    assertEquals("(NOT (NOT (NOT (NOT (NOT b=1)))))", adapter.statementAdapter(stmnt));
  }
 
  public void testSomeComplexQuery() {
    DataQueryStatement stmnt = not(and(or("a=1", "b=2"), not("b=2"), statement("c=3")));
   
    assertEquals("(NOT ((a=1 OR b=2) AND (NOT b=2) AND c=3))", adapter.statementAdapter(stmnt));
  }
View Full Code Here

   
    String result = "(";

    Iterator iterator = stmnt.iterator();
    while(iterator.hasNext()) {
      DataQueryStatement subStatement = iterator.next();
     
      result += prefix + statementAdapter(subStatement) + suffix;
    }
   
    return result.substring(0, result.length() - suffix.length()) + ")";
View Full Code Here

TOP

Related Classes of com.aichamorro.dal.dataquery.DataQueryStatement$Iterator

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.