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

com.easy.query.api4j.select.extension.queryable7.SQLAggregatable7 Maven / Gradle / Ivy

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

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

import java.math.BigDecimal;

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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




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


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

    default  TMember sumOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().sumOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

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

    default  TMember maxOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().maxOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

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

    default  TMember minOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().minOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

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

    default  Double avgOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().avgOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

    default  BigDecimal avgBigDecimalOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().avgBigDecimalOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

    default  Float avgFloatOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
        return getClientQueryable7().avgFloatOrNullMerge((tuple7) -> {
            columnSelectorExpression.apply(new Tuple7<>(new SQLColumnResultSelectorImpl<>(tuple7.t()), new SQLColumnResultSelectorImpl<>(tuple7.t1()), new SQLColumnResultSelectorImpl<>(tuple7.t2()), new SQLColumnResultSelectorImpl<>(tuple7.t3()), new SQLColumnResultSelectorImpl<>(tuple7.t4()), new SQLColumnResultSelectorImpl<>(tuple7.t5()),new SQLColumnResultSelectorImpl<>(tuple7.t6())));
        });
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy