Package org.araneaframework.backend.list.memorybased

Examples of org.araneaframework.backend.list.memorybased.ComparatorExpression


 
  protected void propagateListDataProviderWithOrderInfo(OrderInfo orderInfo) {
    log.debug("Building OrderExpression for ListDataProvider");
    if (this.listDataProvider != null) {
      ListOrder order = this.listStructure.getListOrder();
      ComparatorExpression orderExpr = order != null ? order.buildComparatorExpression(orderInfo) : null;
      this.listDataProvider.setOrderExpression(orderExpr);     
    }
  }
View Full Code Here


    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);
View Full Code Here

      return 0;
    }
   
    int result = 0;
    for (Iterator i = this.children.iterator(); i.hasNext();) {
      ComparatorExpression expr = (ComparatorExpression) i.next();
      result = expr.compare(resolver1, resolver2);
      if (result == 0) {
        return 0;
      }
    }
    return result;
View Full Code Here

TOP

Related Classes of org.araneaframework.backend.list.memorybased.ComparatorExpression

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.