Package org.araneaframework.backend.list.memorybased.compexpr

Examples of org.araneaframework.backend.list.memorybased.compexpr.MultiComparatorExpression


    if (orderInfo.getFields().size() == 0) {
      log.debug("No filterInfoFields specified, returning null");
      return null;
    }
   
    MultiComparatorExpression multiExpr = new MultiComparatorExpression();

    Iterator i = orderInfo.getFields().iterator();
    while (i.hasNext()) {
      OrderInfoField orderInfoField = (OrderInfoField) i.next();
      ColumnOrder columnOrder = (ColumnOrder) this.columnOrders
          .get(orderInfoField.getId());
      if (columnOrder != null) {
        ComparatorExpression temp = columnOrder
            .buildComparatorExpression(orderInfo);
        if (!orderInfoField.isAscending()) {
          temp = new ReverseComparatorExpression(temp);
        }
        multiExpr.add(temp);
      }
    }

    return multiExpr;
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.backend.list.memorybased.compexpr.MultiComparatorExpression

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.