com.easy.query.api4j.sql.scec.SQLNativeLambdaExpressionContextImpl Maven / Gradle / Ivy
package com.easy.query.api4j.sql.scec;
import com.easy.query.api4j.select.Queryable;
import com.easy.query.api4j.util.EasyLambdaUtil;
import com.easy.query.core.expression.lambda.Property;
import com.easy.query.core.expression.parser.core.EntitySQLTableOwner;
import com.easy.query.core.expression.parser.core.base.scec.SQLNativePropertyExpressionContext;
/**
* create time 2023/7/29 23:41
* 文件说明
*
* @author xuejiaming
*/
public class SQLNativeLambdaExpressionContextImpl implements SQLNativeLambdaExpressionContext {
protected final SQLNativePropertyExpressionContext columnConstExpressionContext;
public SQLNativeLambdaExpressionContextImpl(SQLNativePropertyExpressionContext columnConstExpressionContext){
this.columnConstExpressionContext = columnConstExpressionContext;
}
@Override
public SQLNativeLambdaExpressionContext expression(Property property) {
columnConstExpressionContext.expression(EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLNativeLambdaExpressionContext expression(Queryable subQuery) {
columnConstExpressionContext.expression(subQuery.getClientQueryable());
return this;
}
@Override
public SQLNativeLambdaExpressionContext expression(EntitySQLTableOwner table, Property property) {
columnConstExpressionContext.expression(table.getTable(),EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLNativeLambdaExpressionContext value(Object val) {
columnConstExpressionContext.value(val);
return this;
}
@Override
public SQLNativeLambdaExpressionContext format(Object formatVal) {
columnConstExpressionContext.format(formatVal);
return this;
}
@Override
public SQLNativeLambdaExpressionContext setAlias(String alias) {
columnConstExpressionContext.setAlias(alias);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy