
com.easy.query.api.proxy.entity.update.impl.EasyEntityOnlyUpdate Maven / Gradle / Ivy
package com.easy.query.api.proxy.entity.update.impl;
import com.easy.query.api.proxy.entity.update.EntityOnlyUpdatable;
import com.easy.query.api.proxy.entity.update.EntityUpdatable;
import com.easy.query.core.basic.api.update.ClientEntityUpdatable;
import com.easy.query.core.enums.SQLExecuteStrategyEnum;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.sql.builder.EntityUpdateExpressionBuilder;
import com.easy.query.core.expression.sql.builder.internal.ContextConfigurer;
import com.easy.query.core.expression.sql.builder.internal.EasyBehavior;
import com.easy.query.core.proxy.ProxyEntity;
import java.util.function.Function;
/**
* create time 2024/5/19 09:05
* 文件说明
*
* @author xuejiaming
*/
public class EasyEntityOnlyUpdate implements EntityOnlyUpdatable {
private final ClientEntityUpdatable clientEntityUpdatable;
public EasyEntityOnlyUpdate(ClientEntityUpdatable clientEntityUpdatable){
this.clientEntityUpdatable = clientEntityUpdatable;
}
@Override
public ClientEntityUpdatable getClientUpdate() {
return clientEntityUpdatable;
}
@Override
public > EntityUpdatable useProxy(TProxy proxy) {
return new EasyEntityUpdatable<>(proxy,clientEntityUpdatable);
}
@Override
public EntityUpdateExpressionBuilder getUpdateExpressionBuilder() {
return clientEntityUpdatable.getUpdateExpressionBuilder();
}
@Override
public EntityOnlyUpdatable noInterceptor() {
clientEntityUpdatable.noInterceptor();
return this;
}
@Override
public EntityOnlyUpdatable useInterceptor(String name) {
clientEntityUpdatable.useInterceptor(name);
return this;
}
@Override
public EntityOnlyUpdatable noInterceptor(String name) {
clientEntityUpdatable.noInterceptor(name);
return this;
}
@Override
public EntityOnlyUpdatable useInterceptor() {
clientEntityUpdatable.useInterceptor();
return this;
}
@Override
public EntityOnlyUpdatable useLogicDelete(boolean enable) {
clientEntityUpdatable.useLogicDelete(enable);
return this;
}
@Override
public EntityOnlyUpdatable batch(boolean use) {
clientEntityUpdatable.batch(use);
return this;
}
@Override
public void executeRows(long expectRows, String msg, String code) {
clientEntityUpdatable.executeRows(expectRows,msg,code);
}
@Override
public long executeRows() {
return clientEntityUpdatable.executeRows();
}
@Override
public EntityOnlyUpdatable setSQLStrategy(boolean condition, SQLExecuteStrategyEnum sqlStrategy) {
clientEntityUpdatable.setSQLStrategy(sqlStrategy);
return this;
}
@Override
public EntityOnlyUpdatable asTable(Function tableNameAs) {
clientEntityUpdatable.asTable(tableNameAs);
return this;
}
@Override
public EntityOnlyUpdatable asSchema(Function schemaAs) {
clientEntityUpdatable.asSchema(schemaAs);
return this;
}
@Override
public EntityOnlyUpdatable asAlias(String alias) {
clientEntityUpdatable.asAlias(alias);
return this;
}
@Override
public EntityOnlyUpdatable asTableLink(Function linkAs) {
clientEntityUpdatable.asTableLink(linkAs);
return this;
}
@Override
public EntityOnlyUpdatable configure(SQLExpression1 configurer) {
clientEntityUpdatable.configure(configurer);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy