Package com.asakusafw.modelgen.model

Examples of com.asakusafw.modelgen.model.Aggregator


                f.newThis(),
                common.getFieldNameOf(property.getName(), property.getType()));
        Expression other = f.newFieldAccessExpression(
                f.newSimpleName(parameterName),
                common.getFieldNameOf(property.getName(), property.getType()));
        Aggregator aggregator = source.getAggregator();
        switch (aggregator) {
        case MAX:
        case MIN:
            return new ExpressionBuilder(f, self)
                .method(aggregator.name().toLowerCase(), other)
                .toStatement();
        case SUM:
        case COUNT:
            return new ExpressionBuilder(f, self)
                .method(Constants.NAME_OPTION_ADDER, other)
View Full Code Here


                    "プロパティが追加されていません ({0})",
                    getReference()));
        }
        List<ModelProperty> properties = new ArrayList<ModelProperty>();
        for (Column column : columns) {
            Aggregator aggregator = column.aggregator;
            Source source = column.source;
            if (aggregator == Aggregator.IDENT
                    && groupProperties.contains(source) == false) {
                throw new IllegalStateException(MessageFormat.format(
                        "プロパティ \"{0}.{1}\" は集約関数かグループ化のキーとして指定する必要があります ({2})",
View Full Code Here

TOP

Related Classes of com.asakusafw.modelgen.model.Aggregator

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.