com.easy.query.api4j.sql.scec.SQLAliasNativeLambdaExpressionContextImpl 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.SQLAliasNativePropertyExpressionContext;
/**
* create time 2023/7/29 23:41
* 文件说明
*
* @author xuejiaming
*/
public class SQLAliasNativeLambdaExpressionContextImpl implements SQLAliasNativeLambdaExpressionContext{
private final SQLAliasNativePropertyExpressionContext sqlAliasNativePropertyExpressionContext;
public SQLAliasNativeLambdaExpressionContextImpl(SQLAliasNativePropertyExpressionContext sqlAliasNativePropertyExpressionContext){
this.sqlAliasNativePropertyExpressionContext = sqlAliasNativePropertyExpressionContext;
}
@Override
public SQLAliasNativeLambdaExpressionContext expressionAlias(Property property) {
sqlAliasNativePropertyExpressionContext.expressionAlias(EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext setPropertyAlias(Property property) {
sqlAliasNativePropertyExpressionContext.setPropertyAlias(EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext expression(Property property) {
sqlAliasNativePropertyExpressionContext.expression(EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext expression(EntitySQLTableOwner table, Property property) {
sqlAliasNativePropertyExpressionContext.expression(table.getTable(),EasyLambdaUtil.getPropertyName(property));
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext expression(Queryable subQuery) {
sqlAliasNativePropertyExpressionContext.expression(subQuery.getClientQueryable());
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext value(Object val) {
sqlAliasNativePropertyExpressionContext.value(val);
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext format(Object formatVal) {
sqlAliasNativePropertyExpressionContext.format(formatVal);
return this;
}
@Override
public SQLAliasNativeLambdaExpressionContext setAlias(String alias) {
sqlAliasNativePropertyExpressionContext.setAlias(alias);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy