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

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


          .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


  }
 
  class ReverseComparatorTranslator implements CompExprToSqlExprTranslator {
    public SqlExpression translate(ComparatorExpression expr, CompExprToSqlExprBuilder builder) {
      log.debug("Translating ReverseComparatorExpression");
      ReverseComparatorExpression parent = (ReverseComparatorExpression) expr;
      VariableComparatorExpression compExpr = (VariableComparatorExpression) parent.getChildren()[0];
      return new SqlDescendingExpression(translateVariableComparatorInternal(compExpr));
    }
View Full Code Here

TOP

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

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.