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

com.easy.query.api.proxy.entity.insert.extension.ProxyColumnConfigurer Maven / Gradle / Ivy

There is a newer version: 2.0.106
Show newest version
package com.easy.query.api.proxy.entity.insert.extension;

import com.easy.query.core.basic.jdbc.parameter.SQLParameter;
import com.easy.query.core.expression.builder.Configurer;
import com.easy.query.core.expression.lambda.SQLExpression2;
import com.easy.query.core.proxy.ProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.sql.scec.SQLNativeProxyExpressionContext;
import com.easy.query.core.proxy.sql.scec.SQLNativeProxyExpressionContextImpl;

/**
  * create time 2024/5/19 09:34
  * 文件说明
  * @author xuejiaming
  */
public interface ProxyColumnConfigurer,T> {
    Configurer getConfigurer();

    default  ProxyColumnConfigurer column(SQLColumn property, String sqlSegment, SQLExpression2 contextConsume){
        getConfigurer().column(property.getTable(),property.getValue(),sqlSegment,(context, sqlParameter)->{
            contextConsume.apply(new SQLNativeProxyExpressionContextImpl(context),sqlParameter);
        });
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy