com.easy.query.api4j.select.extension.queryable9.SQLGroupable9 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable9;
import com.easy.query.api4j.select.Queryable9;
import com.easy.query.api4j.sql.SQLGroupBySelector;
import com.easy.query.api4j.sql.impl.SQLGroupBySelectorImpl;
import com.easy.query.core.common.tuple.Tuple9;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression9;
/**
* create time 2023/8/18 09:36
* 文件说明
*
* @author xuejiaming
*/
public interface SQLGroupable9 extends ClientQueryable9Available, Queryable9Available {
default Queryable9 groupBy(SQLExpression9, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector> selectExpression) {
getClientQueryable9().groupBy((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9) -> {
selectExpression.apply(new SQLGroupBySelectorImpl<>(selector1), new SQLGroupBySelectorImpl<>(selector2), new SQLGroupBySelectorImpl<>(selector3), new SQLGroupBySelectorImpl<>(selector4), new SQLGroupBySelectorImpl<>(selector5), new SQLGroupBySelectorImpl<>(selector6), new SQLGroupBySelectorImpl<>(selector7), new SQLGroupBySelectorImpl<>(selector8), new SQLGroupBySelectorImpl<>(selector9));
});
return getQueryable9();
}
default Queryable9 groupBy(boolean condition, SQLExpression9, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector> selectExpression) {
getClientQueryable9().groupBy(condition, (selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9) -> {
selectExpression.apply(new SQLGroupBySelectorImpl<>(selector1), new SQLGroupBySelectorImpl<>(selector2), new SQLGroupBySelectorImpl<>(selector3), new SQLGroupBySelectorImpl<>(selector4), new SQLGroupBySelectorImpl<>(selector5), new SQLGroupBySelectorImpl<>(selector6), new SQLGroupBySelectorImpl<>(selector7), new SQLGroupBySelectorImpl<>(selector8), new SQLGroupBySelectorImpl<>(selector9));
});
return getQueryable9();
}
default Queryable9 groupByMerge(SQLExpression1, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector>> selectExpression) {
return groupByMerge(true, selectExpression);
}
default Queryable9 groupByMerge(boolean condition, SQLExpression1, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector>> selectExpression) {
return groupBy(condition, (t1, t2, t3, t4, t5, t6, t7, t8, t9) -> {
selectExpression.apply(new Tuple9<>(t1, t2, t3, t4, t5, t6, t7, t8, t9));
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy