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.available.TableAvailable;
import com.easy.query.core.expression.parser.core.base.scec.SQLNativePropertyExpressionContext;
import java.util.Collection;
/**
* create time 2023/7/29 23:41
* 文件说明
*
* @author xuejiaming
*/
public class SQLNativeLambdaExpressionContextImpl implements SQLNativeLambdaExpressionContext {
protected final SQLNativePropertyExpressionContext sqlNativePropertyExpressionContext;
public SQLNativeLambdaExpressionContextImpl(SQLNativePropertyExpressionContext columnConstExpressionContext){
this.sqlNativePropertyExpressionContext = columnConstExpressionContext;
}
@Override
public SQLNativeLambdaExpressionContext expression(Property property) {
sqlNativePropertyExpressionContext.expression(EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLNativeLambdaExpressionContext expression(Queryable subQuery) {
sqlNativePropertyExpressionContext.expression(subQuery.getClientQueryable());
return this;
}
@Override
public SQLNativeLambdaExpressionContext expression(EntitySQLTableOwner table, Property property) {
sqlNativePropertyExpressionContext.expression(table,EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLNativeLambdaExpressionContext columnName(String columnName) {
sqlNativePropertyExpressionContext.columnName(columnName);
return this;
}
@Override
public SQLNativeLambdaExpressionContext columnName(TableAvailable table, String columnName) {
sqlNativePropertyExpressionContext.columnName(table,columnName);
return this;
}
@Override
public SQLNativeLambdaExpressionContext value(Object val) {
sqlNativePropertyExpressionContext.value(val);
return this;
}
@Override
public SQLNativeLambdaExpressionContext collection(Collection values) {
sqlNativePropertyExpressionContext.collection(values);
return this;
}
@Override
public SQLNativeLambdaExpressionContext format(Object formatVal) {
sqlNativePropertyExpressionContext.format(formatVal);
return this;
}
@Override
public SQLNativeLambdaExpressionContext setAlias(String alias) {
sqlNativePropertyExpressionContext.setAlias(alias);
return this;
}
@Override
public SQLNativeLambdaExpressionContext keepStyle() {
sqlNativePropertyExpressionContext.keepStyle();
return this;
}
@Override
public SQLNativeLambdaExpressionContext messageFormat() {
sqlNativePropertyExpressionContext.messageFormat();
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy