Package org.infinispan.objectfilter.impl.hql.predicate

Source Code of org.infinispan.objectfilter.impl.hql.predicate.FilterLikePredicate

package org.infinispan.objectfilter.impl.hql.predicate;

import org.hibernate.hql.ast.spi.predicate.LikePredicate;
import org.infinispan.objectfilter.impl.syntax.BooleanExpr;
import org.infinispan.objectfilter.impl.syntax.LikeExpr;
import org.infinispan.objectfilter.impl.syntax.PropertyValueExpr;

/**
* @author anistor@redhat.com
* @since 7.0
*/
class FilterLikePredicate extends LikePredicate<BooleanExpr> {

   public FilterLikePredicate(String propertyName, String patternValue) {
      super(propertyName, patternValue, null);
   }

   @Override
   public BooleanExpr getQuery() {
      return new LikeExpr(new PropertyValueExpr(propertyName), patternValue);
   }
}
TOP

Related Classes of org.infinispan.objectfilter.impl.hql.predicate.FilterLikePredicate

TOP
Copyright © 2018 www.massapi.com. 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.