com.easy.query.api4j.select.extension.queryable9.SQLHavingable9 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable9;
import com.easy.query.api4j.select.Queryable9;
import com.easy.query.api4j.sql.SQLWhereAggregatePredicate;
import com.easy.query.api4j.sql.impl.SQLWhereAggregatePredicateImpl;
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:41
* 文件说明
*
* @author xuejiaming
*/
public interface SQLHavingable9 extends ClientQueryable9Available, Queryable9Available {
default Queryable9 having(SQLExpression9, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate> predicateExpression) {
getClientQueryable9().having((predicate1, predicate2, predicate3, predicate4, predicate5, predicate6, predicate7, predicate8, predicate9) -> {
predicateExpression.apply(new SQLWhereAggregatePredicateImpl<>(predicate1), new SQLWhereAggregatePredicateImpl<>(predicate2), new SQLWhereAggregatePredicateImpl<>(predicate3), new SQLWhereAggregatePredicateImpl<>(predicate4), new SQLWhereAggregatePredicateImpl<>(predicate5), new SQLWhereAggregatePredicateImpl<>(predicate6), new SQLWhereAggregatePredicateImpl<>(predicate7), new SQLWhereAggregatePredicateImpl<>(predicate8), new SQLWhereAggregatePredicateImpl<>(predicate9));
});
return getQueryable9();
}
default Queryable9 having(boolean condition, SQLExpression9, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate> predicateExpression) {
getClientQueryable9().having(condition, (predicate1, predicate2, predicate3, predicate4, predicate5, predicate6, predicate7, predicate8, predicate9) -> {
predicateExpression.apply(new SQLWhereAggregatePredicateImpl<>(predicate1), new SQLWhereAggregatePredicateImpl<>(predicate2), new SQLWhereAggregatePredicateImpl<>(predicate3), new SQLWhereAggregatePredicateImpl<>(predicate4), new SQLWhereAggregatePredicateImpl<>(predicate5), new SQLWhereAggregatePredicateImpl<>(predicate6), new SQLWhereAggregatePredicateImpl<>(predicate7), new SQLWhereAggregatePredicateImpl<>(predicate8), new SQLWhereAggregatePredicateImpl<>(predicate9));
});
return getQueryable9();
}
default Queryable9 havingMerge(SQLExpression1, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate>> predicateExpression) {
return havingMerge(true, predicateExpression);
}
default Queryable9 havingMerge(boolean condition, SQLExpression1, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate, SQLWhereAggregatePredicate>> predicateExpression) {
return having(condition, (t1, t2, t3, t4, t5, t6, t7, t8, t9) -> {
predicateExpression.apply(new Tuple9<>(t1, t2, t3, t4, t5, t6, t7, t8, t9));
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy