Package org.infinispan.objectfilter.impl.syntax

Examples of org.infinispan.objectfilter.impl.syntax.AndExpr


      BooleanExpr firstChild = children.get(0).getQuery();
      if (children.size() == 1) {
         return firstChild;
      }

      AndExpr andExpr = new AndExpr(firstChild);

      for (int i = 1; i < children.size(); i++) {
         BooleanExpr child = children.get(i).getQuery();
         andExpr.getChildren().add(child);
      }

      return andExpr;
   }
View Full Code Here


      super(propertyName, lower, upper);
   }

   @Override
   public BooleanExpr getQuery() {
      return new AndExpr(
            new ComparisonExpr(new PropertyValueExpr(propertyName), new ConstantValueExpr((Comparable) lower), ComparisonExpr.Type.GREATER_OR_EQUAL),
            new ComparisonExpr(new PropertyValueExpr(propertyName), new ConstantValueExpr((Comparable) upper), ComparisonExpr.Type.LESS_OR_EQUAL)
      );
   }
View Full Code Here

      super(propertyName, lower, upper);
   }

   @Override
   public BooleanExpr getQuery() {
      return new AndExpr(
            new ComparisonExpr(new PropertyValueExpr(propertyName), new ConstantValueExpr(lower), ComparisonPredicate.Type.GREATER_OR_EQUAL),
            new ComparisonExpr(new PropertyValueExpr(propertyName), new ConstantValueExpr(upper), ComparisonPredicate.Type.LESS_OR_EQUAL)
      );
   }
View Full Code Here

TOP

Related Classes of org.infinispan.objectfilter.impl.syntax.AndExpr

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.