All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.easy.query.api4j.select.extension.queryable8.SQLAggregatable8 Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.easy.query.api4j.select.extension.queryable8;

import com.easy.query.api4j.sql.SQLColumnResultSelector;
import com.easy.query.api4j.sql.impl.SQLColumnResultSelectorImpl;
import com.easy.query.core.common.tuple.Tuple8;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression8;

import java.math.BigDecimal;

/**
 * create time 2023/8/17 17:02
 * 文件说明
 *
 * @author xuejiaming
 */
public interface SQLAggregatable8 extends ClientQueryable8Available {

    /**
     * 防止溢出
     *
     * @param columnSelectorExpression
     * @param 
     * @return
     */
    default  BigDecimal sumBigDecimalOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().sumBigDecimalOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }


    default  BigDecimal sumBigDecimalOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, BigDecimal def) {
        return getClientQueryable8().sumBigDecimalOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  TMember sumOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().sumOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  TMember sumOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
        return getClientQueryable8().sumOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  TMember maxOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().maxOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  TMember maxOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
        return getClientQueryable8().maxOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  TMember minOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().minOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  TMember minOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
        return getClientQueryable8().minOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  Double avgOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().avgOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  BigDecimal avgBigDecimalOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().avgBigDecimalOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  Float avgFloatOrNull(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
        return getClientQueryable8().avgFloatOrNull((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        });
    }

    default  Double avgOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, Double def) {
        return getClientQueryable8().avgOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  BigDecimal avgBigDecimalOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, BigDecimal def) {
        return getClientQueryable8().avgBigDecimalOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  Float avgFloatOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, Float def) {
        return getClientQueryable8().avgFloatOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def);
    }

    default  TResult avgOrDefault(SQLExpression8, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TResult def, Class resultClass) {
        return getClientQueryable8().avgOrDefault((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8) -> {
            columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6), new SQLColumnResultSelectorImpl<>(selector7), new SQLColumnResultSelectorImpl<>(selector8));
        }, def, resultClass);
    }


    /**
     * 防止溢出
     *
     * @param columnSelectorExpression
     * @param 
     * @return
     */
    default  BigDecimal sumBigDecimalOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().sumBigDecimalOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }


    default  BigDecimal sumBigDecimalOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, BigDecimal def) {
        return getClientQueryable8().sumBigDecimalOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  TMember sumOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().sumOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  TMember sumOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
        return getClientQueryable8().sumOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  TMember maxOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().maxOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  TMember maxOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
        return getClientQueryable8().maxOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  TMember minOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().minOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  TMember minOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
        return getClientQueryable8().minOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  Double avgOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().avgOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  BigDecimal avgBigDecimalOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().avgBigDecimalOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  Float avgFloatOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable8().avgFloatOrNullMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        });
    }

    default  Double avgOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, Double def) {
        return getClientQueryable8().avgOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  BigDecimal avgBigDecimalOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, BigDecimal def) {
        return getClientQueryable8().avgBigDecimalOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  Float avgFloatOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, Float def) {
        return getClientQueryable8().avgFloatOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def);
    }

    default  TResult avgOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TResult def, Class resultClass) {
        return getClientQueryable8().avgOrDefaultMerge((tuple8) -> {
            columnSelectorExpression.apply(new Tuple8<>(new SQLColumnResultSelectorImpl<>(tuple8.t()), new SQLColumnResultSelectorImpl<>(tuple8.t1()), new SQLColumnResultSelectorImpl<>(tuple8.t2()), new SQLColumnResultSelectorImpl<>(tuple8.t3()), new SQLColumnResultSelectorImpl<>(tuple8.t4()), new SQLColumnResultSelectorImpl<>(tuple8.t5()), new SQLColumnResultSelectorImpl<>(tuple8.t6()), new SQLColumnResultSelectorImpl<>(tuple8.t7())));
        }, def, resultClass);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy