com.easy.query.api4j.select.extension.queryable10.SQLGroupable10 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable10;
import com.easy.query.api4j.select.Queryable10;
import com.easy.query.api4j.sql.SQLGroupBySelector;
import com.easy.query.api4j.sql.impl.SQLGroupBySelectorImpl;
import com.easy.query.core.common.tuple.Tuple10;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression10;
/**
* create time 2023/8/18 09:36
* 文件说明
*
* @author xuejiaming
*/
public interface SQLGroupable10 extends ClientQueryable10Available, Queryable10Available {
default Queryable10 groupBy(SQLExpression10, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector> selectExpression) {
getClientQueryable10().groupBy((selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9, selector10) -> {
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), new SQLGroupBySelectorImpl<>(selector10));
});
return getQueryable10();
}
default Queryable10 groupBy(boolean condition, SQLExpression10, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector> selectExpression) {
getClientQueryable10().groupBy(condition, (selector1, selector2, selector3, selector4, selector5, selector6, selector7, selector8, selector9, selector10) -> {
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), new SQLGroupBySelectorImpl<>(selector10));
});
return getQueryable10();
}
default Queryable10 groupByMerge(SQLExpression1, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector>> selectExpression) {
return groupByMerge(true, selectExpression);
}
default Queryable10 groupByMerge(boolean condition, SQLExpression1, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector, SQLGroupBySelector>> selectExpression) {
return groupBy(condition, (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) -> {
selectExpression.apply(new Tuple10<>(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10));
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy