Package com.tridion.broker.querying.criteria.metadata

Examples of com.tridion.broker.querying.criteria.metadata.CustomMetaValueCriteria


        // Custom meta stuff
      } else if (CUSTOM_META_KEY.equals(criteria)) {
        return new CustomMetaKeyCriteria(value, fieldOperator);
      } else if (CUSTOM_META_VALUE.equals(criteria)) {
        return new CustomMetaValueCriteria(value, fieldOperator);
      }
    } catch (NumberFormatException nfe) {
      String messsage = "NumberFormatException occurred: " + nfe.getMessage();
      log.error(messsage, nfe);
      throw new ParserException(messsage, nfe);
View Full Code Here


    FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
    String valueString = fieldOperatorNodes.get(0).getValue();
    try {
      Date valueDate = TimeUtils.parseDate(valueString, DATE_FORMAT);
      criteria = new CustomMetaValueCriteria(keyCriteria, valueDate, operator);
      return;
    } catch (ParseException e) { // ignore
    }
    try {
      Float valueFloat = Float.parseFloat(valueString);
      criteria = new CustomMetaValueCriteria(keyCriteria, valueFloat, operator);
      return;
    } catch (NumberFormatException e) { // ignore
    }

    criteria = new CustomMetaValueCriteria(keyCriteria, valueString, operator);
  }
View Full Code Here

TOP

Related Classes of com.tridion.broker.querying.criteria.metadata.CustomMetaValueCriteria

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.