All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.easy.query.api4j.select.extension.queryable.SQLTreeable1 Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
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