Package org.araneaframework.backend.list.memorybased.expression.logical

Examples of org.araneaframework.backend.list.memorybased.expression.logical.OrExpression


      super();
    }   
    protected Expression buildAction(Expression var, Expression startValue, Expression endValue) {
      AndExpression expr = new AndExpression();
      if (startValue != null) {
        expr.add(new OrExpression().add(
            new GreaterThanExpression(var, startValue, getComparator())).add(
                new ComparedEqualsExpression(var, startValue, getComparator())));
      }
      if (endValue != null) {
        expr.add(new OrExpression().add(
            new LowerThanExpression(var, endValue, getComparator())).add(
                new ComparedEqualsExpression(var, endValue, getComparator())));
      }
      return expr;
    }
View Full Code Here


 
  private static final Logger log = Logger.getLogger(OrFilter.class);
 
  public Expression buildExpression(Map data) {
    log.debug("Building Expression, data = " + data);
    OrExpression expr = new OrExpression();
    for (Iterator i = this.children.iterator(); i.hasNext();) {
      ListFilter filter = (ListFilter) i.next();
      Expression childExpr = filter.buildExpression(data);
      expr.add(childExpr);
    }
    return expr;
  }
View Full Code Here

    }   
    public GreaterThanOrEquals() {
      super();
    }
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new GreaterThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

    }   
    public LowerThanOrEquals() {
      super();
    }
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new LowerThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

  }
 
  public static class GreaterThanOrEquals extends SimpleProcedureFilter {
    private static final long serialVersionUID = 1L;
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new GreaterThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

  }
 
  public static class LowerThanOrEquals extends SimpleProcedureFilter {
    private static final long serialVersionUID = 1L;
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new LowerThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

    }   
    public GreaterThanOrEquals(Object value) {
      super(value);
    }
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new GreaterThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

    }   
    public LowerThanOrEquals(Object value) {
      super(value);
    }
    protected Expression buildAction(Map filterInfo, Expression leftOperand, Expression rightOperand) {
      return new OrExpression().
      add(new LowerThanExpression(leftOperand, rightOperand, getComparator())).   
      add(new ComparedEqualsExpression(leftOperand, rightOperand, getComparator()));
    }
View Full Code Here

    public ColumnRangeInValueRangeNonStrict() {
      super();
    }
    protected Expression buildAction(Expression startVar, Expression endVar, Expression startVal, Expression endVal) {
      AndExpression expr = new AndExpression();
      expr.add(new OrExpression().add(
          new GreaterThanExpression(startVar, startVal)).add(
              new EqualsExpression(startVar, startVal)));     
      expr.add(new OrExpression().add(
          new LowerThanExpression(endVar, endVal)).add(
              new EqualsExpression(endVar, endVal)));
      return expr;
    }
View Full Code Here

    public ValueRangeInColumnRangeNonStrict() {
      super();
    }
    protected Expression buildAction(Expression startVar, Expression endVar, Expression startVal, Expression endVal) {
      AndExpression expr = new AndExpression();
      expr.add(new OrExpression().add(
          new LowerThanExpression(startVar, startVal)).add(
              new EqualsExpression(startVar, startVal)));     
      expr.add(new OrExpression().add(
          new GreaterThanExpression(endVar, endVal)).add(
              new EqualsExpression(endVar, endVal)));
      return expr;
    }
View Full Code Here

TOP

Related Classes of org.araneaframework.backend.list.memorybased.expression.logical.OrExpression

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.