Package org.molgenis.framework.db.QueryRule

Examples of org.molgenis.framework.db.QueryRule.Operator


      QueryRule rule = rules.get(i);
      if (mapper != null)
      {
        rule.setField(mapper.getTableFieldName(rule.getField()));

        Operator operator = rule.getOperator();
        if (operator == Operator.SORTASC || operator == Operator.SORTDESC)
        {
          rule.setField(mapper.getTableFieldName(rule.getValue().toString()));
        }
View Full Code Here


      String filterAttr = request.getString("__filter_attribute" + suffix);
      if (filterAttr == null) break;

      String operatorStr = request.getString("__filter_operator" + suffix);
      Operator operator = QueryRule.Operator.valueOf(operatorStr);
      String filterValue = request.getString("__filter_value" + suffix);

      QueryRule filterRule;
      if (filterAttr.equals(FILTER_ATTRIBUTE_ALL))
      {
View Full Code Here

    // incomplete impl
    for (String rule : ruleStrings)
    {
      String field = null;
      Operator operator = null;
      String value = null;
      // need the longest operator string match
      int operatorLength = 0;
      for (Operator o : Operator.values())
      {
View Full Code Here

            tupleTable.setOffset(offset);
          }

          if (StringUtils.isNotEmpty(postData.getSidx()))
          {
            final Operator sortOperator = StringUtils.equals(postData.getSord(), "asc") ? QueryRule.Operator.SORTASC
                : QueryRule.Operator.SORTDESC;
            rules.add(new QueryRule(sortOperator, postData.getSidx()));
          }

          if ((tupleTable instanceof FilterableTupleTable) && !request.isNull("_search")
View Full Code Here

TOP

Related Classes of org.molgenis.framework.db.QueryRule.Operator

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.