com.easy.query.api4j.select.extension.queryable5.SQLSelectable5 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable5;
import com.easy.query.api4j.select.Queryable;
import com.easy.query.api4j.select.impl.EasyQueryable;
import com.easy.query.api4j.sql.SQLColumnAsSelector;
import com.easy.query.api4j.sql.impl.SQLColumnAsSelectorImpl;
import com.easy.query.core.basic.api.select.ClientQueryable;
import com.easy.query.core.common.tuple.Tuple5;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.lambda.SQLExpression5;
/**
* create time 2023/8/18 09:53
* 文件说明
*
* @author xuejiaming
*/
public interface SQLSelectable5 extends ClientQueryable5Available {
default Queryable select(Class resultClass, SQLExpression5, SQLColumnAsSelector, SQLColumnAsSelector, SQLColumnAsSelector, SQLColumnAsSelector> selectExpression) {
ClientQueryable select = getClientQueryable5().select(resultClass, (t1, t2, t3, t4, t5) -> {
selectExpression.apply(new SQLColumnAsSelectorImpl<>(t1), new SQLColumnAsSelectorImpl<>(t2), new SQLColumnAsSelectorImpl<>(t3), new SQLColumnAsSelectorImpl<>(t4),new SQLColumnAsSelectorImpl<>(t5));
});
return new EasyQueryable<>(select);
}
default Queryable selectMerge(Class resultClass, SQLExpression1, SQLColumnAsSelector, SQLColumnAsSelector, SQLColumnAsSelector, SQLColumnAsSelector>> selectExpression) {
return select(resultClass, (t1, t2, t3, t4, t5) -> {
selectExpression.apply(new Tuple5<>(t1, t2, t3, t4, t5));
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy