Package reportgen.math

Examples of reportgen.math.ResultColumn


     * @return
     */
    private Set<Integer> getGroupCols() {
        Set<Integer> groupCols = new HashSet<Integer>();
        for(int i=0; i<cols.size(); i++) {
            ResultColumn col = cols.get(i);
            if(col.getFunction().equals(AggregateFunction.GROUP)) {
                groupCols.add(i);
            }
        }
        return groupCols;
    }
View Full Code Here


    private static List<ResultsRow> sort(List<ResultColumn> cols, List<ResultsRow> rows) throws ReportException {

        //column index -> priority
        final ArrayList<ColumnPriority> orderByCols = new ArrayList<ColumnPriority>();
        for(int i=0; i<cols.size(); i++) {
            ResultColumn col = cols.get(i);
            if(col.getOrderPriority() != 0) {
                orderByCols.add(new ColumnPriority(i, col.getOrderPriority()));
            }
        }
        Collections.sort(orderByCols);

        Collections.sort(rows, new Comparator<ResultsRow>() {
View Full Code Here

    private AggregateFunction viewFunction = AggregateFunction.ASIS;
    private Class colClass;
    private String description = "";

    public ReportResultColumn(Context context) {
        properties = new ResultColumn();
        this.context = context;
    }
View Full Code Here

            colClass = getClass().getClassLoader().loadClass(cls);
        } catch (ClassNotFoundException ex) {
            throw new ReportException("Класс результирующей колонки имеет неизвестный тип:" + cls);
        }

        properties = new ResultColumn(element, context, colClass);

        String viewFuncVal = getStringAttribute(element, ATTR_VIEWFUNCTION, null, false);
        if(viewFuncVal != null) {
            viewFunction = SimpleFormatColMode.fromName(viewFuncVal);
        } else {
View Full Code Here

    private final MathExpressionGeneric expression;
    private final Context context;

    public QueryResultColumn(Context context) {
        this.context = context;
        properties = new ResultColumn();
        expression = new MathExpressionGeneric(context);
    }
View Full Code Here

        this.context = context;
        expression = new MathExpressionGeneric(
                get(element, MathExpressionGeneric.TAG),
                context
        );
        properties = new ResultColumn(element, context, expression.getCls());
    }
View Full Code Here

TOP

Related Classes of reportgen.math.ResultColumn

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.