com.easy.query.api4j.select.extension.queryable.SQLIncludeable1 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable;
import com.easy.query.api4j.select.Queryable;
import com.easy.query.api4j.sql.SQLNavigateInclude;
import com.easy.query.api4j.sql.impl.SQLNavigateIncludeImpl;
import com.easy.query.core.basic.api.select.ClientQueryableAvailable;
import com.easy.query.core.expression.lambda.SQLFuncExpression1;
/**
* create time 2023/8/17 13:34
* 文件说明
*
* @author xuejiaming
*/
public interface SQLIncludeable1 extends ClientQueryableAvailable, QueryableAvailable {
default Queryable include(SQLFuncExpression1, Queryable> navigateIncludeSQLExpression) {
return include(true, navigateIncludeSQLExpression);
}
default Queryable include(boolean condition, SQLFuncExpression1, Queryable> navigateIncludeSQLExpression) {
if (condition) {
getClientQueryable().include(navigateInclude -> navigateIncludeSQLExpression.apply(new SQLNavigateIncludeImpl<>(navigateInclude)).getClientQueryable());
}
return getQueryable();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy