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

com.easy.query.api.proxy.entity.delete.impl.EasyEntityOnlyDeletable Maven / Gradle / Ivy

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

import com.easy.query.api.proxy.entity.delete.EntityOnlyDeletable;
import com.easy.query.core.basic.api.delete.ClientEntityDeletable;
import com.easy.query.core.basic.jdbc.parameter.ToSQLContext;
import com.easy.query.core.expression.lambda.SQLExpression1;
import com.easy.query.core.expression.sql.builder.EntityDeleteExpressionBuilder;
import com.easy.query.core.expression.sql.builder.ExpressionContext;
import com.easy.query.core.expression.sql.builder.internal.ContextConfigurer;
import com.easy.query.core.expression.sql.builder.internal.EasyBehavior;

import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * create time 2024/5/19 09:15
 * 文件说明
 *
 * @author xuejiaming
 */
public class EasyEntityOnlyDeletable implements EntityOnlyDeletable {
    private final ClientEntityDeletable clientEntityDeletable;

    public EasyEntityOnlyDeletable(ClientEntityDeletable clientEntityDeletable) {

        this.clientEntityDeletable = clientEntityDeletable;
    }

    @Override
    public ExpressionContext getExpressionContext() {
        return clientEntityDeletable.getExpressionContext();
    }

    @Override
    public EntityDeleteExpressionBuilder getDeleteExpressionBuilder() {
        return clientEntityDeletable.getDeleteExpressionBuilder();
    }

    @Override
    public String toSQL(ToSQLContext toSQLContext) {
        return clientEntityDeletable.toSQL(toSQLContext);
    }

    @Override
    public EntityOnlyDeletable allowDeleteStatement(boolean allow) {
        clientEntityDeletable.allowDeleteStatement(allow);
        return this;
    }

    @Override
    public EntityOnlyDeletable ignoreVersion(boolean ignored) {
        clientEntityDeletable.ignoreVersion(ignored);
        return this;
    }

    @Override
    public EntityOnlyDeletable noInterceptor() {
        clientEntityDeletable.noInterceptor();
        return this;
    }

    @Override
    public EntityOnlyDeletable useInterceptor(String name) {
        clientEntityDeletable.useInterceptor(name);
        return this;
    }

    @Override
    public EntityOnlyDeletable noInterceptor(String name) {
        clientEntityDeletable.noInterceptor(name);
        return this;
    }

    @Override
    public EntityOnlyDeletable useInterceptor() {
        clientEntityDeletable.useInterceptor();
        return this;
    }

    @Override
    public EntityOnlyDeletable useLogicDelete(boolean enable) {
        clientEntityDeletable.useLogicDelete(enable);
        return this;
    }

    @Override
    public EntityOnlyDeletable batch(boolean use) {
        clientEntityDeletable.batch(use);
        return this;
    }

    @Override
    public void executeRows(long expectRows, String msg, String code) {
        clientEntityDeletable.executeRows(expectRows, msg, code);
    }

    @Override
    public long executeRows() {
        return clientEntityDeletable.executeRows();
    }

    @Override
    public EntityOnlyDeletable asTable(Function tableNameAs) {
        clientEntityDeletable.asTable(tableNameAs);
        return this;
    }

    @Override
    public EntityOnlyDeletable asSchema(Function schemaAs) {
        clientEntityDeletable.asSchema(schemaAs);
        return this;
    }

    @Override
    public EntityOnlyDeletable asAlias(String alias) {
        clientEntityDeletable.asAlias(alias);
        return this;
    }

    @Override
    public EntityOnlyDeletable asTableLink(Function linkAs) {
        clientEntityDeletable.asTableLink(linkAs);
        return this;
    }
    @Override
    public EntityOnlyDeletable asTableSegment(BiFunction segmentAs) {
        clientEntityDeletable.asTableSegment(segmentAs);
        return this;
    }

    @Override
    public EntityOnlyDeletable configure(SQLExpression1 configurer) {
        clientEntityDeletable.configure(configurer);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy