Package com.googlecode.mjorm.query.criteria

Examples of com.googlecode.mjorm.query.criteria.EqualsCriterion


       
      case MqlParser.COMPARE_CRITERION:
        String op = child(tree, 1).getText();
        Object value = readVariableLiteral(child(tree, 2), ctx);
        if (op.equals("=")) {
          return new EqualsCriterion(value);
        } else if (op.equals("=~")) {
          assertType(value, tree, Pattern.class);
          return new RegexCriterion(Pattern.class.cast(value));
        }
        return new SimpleCriterion(comparisonOperators.get(op), value);
View Full Code Here


      protected Criterion doCreate(QueryGroup queryGroup) {
        return new FieldCriterion(operatorName, queryGroup);
      }
      @Override
      protected Criterion doCreate(Object[] values) {
        return new FieldCriterion(operatorName, new EqualsCriterion(values));
      }
    };
  }
View Full Code Here

TOP

Related Classes of com.googlecode.mjorm.query.criteria.EqualsCriterion

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.