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

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


  public ComparatorExpression buildComparatorExpression(OrderInfo orderInfo) {
    if (this.columnId == null) {
      throw new RuntimeException("Column Id must be provided");
    }
    return new VariableComparatorExpression(getColumnId(), getComparator());
  }
View Full Code Here


  }
 
  class VariableComparatorTranslator implements CompExprToSqlExprTranslator {
    public SqlExpression translate(ComparatorExpression expr, CompExprToSqlExprBuilder builder) {
      log.debug("Translating VariableComparatorExpression");
      VariableComparatorExpression compExpr = (VariableComparatorExpression) expr;
      return new SqlAscendingExpression(translateVariableComparatorInternal(compExpr));
    }
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.VariableComparatorExpression

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.