Examples of Max


Examples of org.objectweb.medor.filter.lib.Max

            break;
        case 2:
            e = new Min(e, distinctOnOperand);
            break;
        case 3:
            e = new Max(e, distinctOnOperand);
            break;
        case 4:
            e = new Avg(e, distinctOnOperand);
            break;
        default:
View Full Code Here

Examples of org.openrdf.query.algebra.Max

      }

      return new LiteralImpl(Double.toString(min), XMLSchema.DOUBLE);
    }
    else if (operator instanceof Max) {
      Max maxOp = (Max)operator;

      Set<Value> values = makeValueSet(strategy, maxOp.getArg(), bindingSets);

      // FIXME: handle case where 'values' is empty
      double max = Double.NEGATIVE_INFINITY;
      for (Value v : values) {
        if (v instanceof Literal) {
View Full Code Here

Examples of org.openrdf.query.algebra.Max

      }

      return new LiteralImpl(Double.toString(min), XMLSchema.DOUBLE);
    }
    else if (operator instanceof Max) {
      Max maxOp = (Max)operator;

      Set<Value> values = makeValueSet(maxOp.getArg(), bindingSets);

      // FIXME: handle case where 'values' is empty
      double max = Double.NEGATIVE_INFINITY;
      for (Value v : values) {
        if (v instanceof Literal) {
View Full Code Here

Examples of org.springmodules.validation.bean.conf.loader.annotation.handler.Max

        super(Max.class);
    }

    @Override
    public String convertToValang(String fieldName, Annotation a, MessageSourceAccessor messages) {
        Max annotation = (Max) a;

        String errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
        String applyIfValang = valangToJS(annotation.applyIf());

        StringBuffer sb = new StringBuffer();
        sb.append(" function() {return this.lessThanOrEquals((this.getPropertyValue(");
        sb.append(wrapAndEscapeJsString(fieldName));// field
        sb.append(")), (");
        sb.append(annotation.value());
        sb.append("))}");

        return buildBasicRule(fieldName, errMsg, sb.toString(), applyIfValang, annotation);
    }
View Full Code Here

Examples of org.teiid.query.function.aggregate.Max

                    break;
                  case MIN:
                    functions[i] = new Min();
                    break;
                  case MAX:
                    functions[i] = new Max();
                    break;
                  case XMLAGG:
                    functions[i] = new XMLAgg(context);
                    break;
                  case ARRAY_AGG:
View Full Code Here

Examples of siena.Max

      if(field.getAnnotation(Text.class) != null) {
        columnType = Types.LONGVARCHAR;
      } else {
        columnType = Types.VARCHAR;
       
        Max max = field.getAnnotation(Max.class);
        if(max == null){
          //throw new SienaRestrictedApiException(DB, "createColumn", "Field "+field.getName()+" in class "
          //    +clazz.getName()+" doesn't have a @Max annotation");
          // default is 255 chars as in hibernate
          column.setSize("255");
        }
        else column.setSize(""+max.value());
      }
    }
    else if(type == Boolean.class || type == Boolean.TYPE) columnType = Types.BOOLEAN;
    else if(type == Date.class) {
      if(field.getAnnotation(DateTime.class) != null)
        columnType = Types.TIMESTAMP;
      else if(field.getAnnotation(Time.class) != null)
        columnType = Types.TIME;
      else if(field.getAnnotation(SimpleDate.class) != null)
        columnType = Types.DATE;
      else
        columnType = Types.TIMESTAMP;
    } else if(type == Json.class) {
      columnType = Types.LONGVARCHAR;
    } else if(type == byte[].class){
      columnType = Types.BLOB;
    } else if(Enum.class.isAssignableFrom(type)){
      // enums are stored as string
      columnType = Types.VARCHAR;
      Max max = field.getAnnotation(Max.class);
      if(max == null)
        column.setSize(""+255); // fixes by default to this value in order to prevent alter tables every time
      else column.setSize(""+max.value());
    } else if(type == BigDecimal.class){           
      DecimalPrecision an = field.getAnnotation(DecimalPrecision.class);
      if(an == null) {
        columnType = Types.DECIMAL;
        column.setSizeAndScale(19, 2);
View Full Code Here
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.