com.easy.query.api4j.select.extension.queryable.SQLTreeable1 Maven / Gradle / Ivy
package com.easy.query.api4j.select.extension.queryable;
import com.easy.query.api4j.select.Queryable;
import com.easy.query.api4j.select.impl.EasyQueryable;
import com.easy.query.api4j.util.EasyLambdaUtil;
import com.easy.query.core.basic.api.select.ClientQueryable;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.parser.core.base.tree.TreeCTEConfigurer;
/**
* create time 2023/10/22 12:10
* 文件说明
*
* @author xuejiaming
*/
public interface SQLTreeable1 extends ClientQueryableAvailable, QueryableAvailable{
default Queryable asTreeCTE(Property codeProperty, Property parentCodeProperty){
return asTreeCTE(codeProperty,parentCodeProperty,o->{});
}
default Queryable asTreeCTE(Property codeProperty,Property parentCodeProperty,SQLExpression1 treeExpression){
ClientQueryable clientQueryable = getClientQueryable().asTreeCTE(EasyLambdaUtil.getPropertyName(codeProperty), EasyLambdaUtil.getPropertyName(parentCodeProperty), treeExpression);
return new EasyQueryable<>(clientQueryable);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy