com.easy.query.api4j.select.extension.queryable6.SQLAggregatable6 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable6;
import com.easy.query.api4j.sql.SQLColumnResultSelector;
import com.easy.query.api4j.sql.impl.SQLColumnResultSelectorImpl;
import com.easy.query.core.common.tuple.Tuple6;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression6;
import java.math.BigDecimal;
/**
* create time 2023/8/17 17:02
* 文件说明
*
* @author xuejiaming
*/
public interface SQLAggregatable6 extends ClientQueryable6Available {
/**
* 防止溢出
*
* @param columnSelectorExpression
* @param
* @return
*/
default BigDecimal sumBigDecimalOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().sumBigDecimalOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default BigDecimal sumBigDecimalOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, BigDecimal def) {
return getClientQueryable6().sumBigDecimalOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default TMember sumOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().sumOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default TMember sumOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
return getClientQueryable6().sumOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default TMember maxOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().maxOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default TMember maxOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
return getClientQueryable6().maxOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default TMember minOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().minOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default TMember minOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TMember def) {
return getClientQueryable6().minOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default Double avgOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().avgOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default BigDecimal avgBigDecimalOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().avgBigDecimalOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default Float avgFloatOrNull(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression) {
return getClientQueryable6().avgFloatOrNull((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
});
}
default Double avgOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, Double def) {
return getClientQueryable6().avgOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default BigDecimal avgBigDecimalOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, BigDecimal def) {
return getClientQueryable6().avgBigDecimalOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default Float avgFloatOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, Float def) {
return getClientQueryable6().avgFloatOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def);
}
default TResult avgOrDefault(SQLExpression6, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector> columnSelectorExpression, TResult def, Class resultClass) {
return getClientQueryable6().avgOrDefault((selector1, selector2, selector3, selector4, selector5, selector6) -> {
columnSelectorExpression.apply(new SQLColumnResultSelectorImpl<>(selector1), new SQLColumnResultSelectorImpl<>(selector2), new SQLColumnResultSelectorImpl<>(selector3), new SQLColumnResultSelectorImpl<>(selector4), new SQLColumnResultSelectorImpl<>(selector5), new SQLColumnResultSelectorImpl<>(selector6));
}, def, resultClass);
}
/**
* 防止溢出
*
* @param columnSelectorExpression
* @param
* @return
*/
default BigDecimal sumBigDecimalOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().sumBigDecimalOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default BigDecimal sumBigDecimalOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, BigDecimal def) {
return getClientQueryable6().sumBigDecimalOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default TMember sumOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().sumOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default TMember sumOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
return getClientQueryable6().sumOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default TMember maxOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().maxOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default TMember maxOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
return getClientQueryable6().maxOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default TMember minOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().minOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default TMember minOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TMember def) {
return getClientQueryable6().minOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default Double avgOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().avgOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default BigDecimal avgBigDecimalOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().avgBigDecimalOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default Float avgFloatOrNullMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression) {
return getClientQueryable6().avgFloatOrNullMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
});
}
default Double avgOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, Double def) {
return getClientQueryable6().avgOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default BigDecimal avgBigDecimalOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, BigDecimal def) {
return getClientQueryable6().avgBigDecimalOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default Float avgFloatOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, Float def) {
return getClientQueryable6().avgFloatOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def);
}
default TResult avgOrDefaultMerge(SQLExpression1, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector, SQLColumnResultSelector>> columnSelectorExpression, TResult def, Class resultClass) {
return getClientQueryable6().avgOrDefaultMerge((tuple6) -> {
columnSelectorExpression.apply(new Tuple6<>(new SQLColumnResultSelectorImpl<>(tuple6.t()), new SQLColumnResultSelectorImpl<>(tuple6.t1()), new SQLColumnResultSelectorImpl<>(tuple6.t2()), new SQLColumnResultSelectorImpl<>(tuple6.t3()), new SQLColumnResultSelectorImpl<>(tuple6.t4()),new SQLColumnResultSelectorImpl<>(tuple6.t5())));
}, def, resultClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy