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

org.babyfish.jimmer.sql.ast.mutation.MutableDelete Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show newest version
package org.babyfish.jimmer.sql.ast.mutation;

import org.babyfish.jimmer.lang.OldChain;
import org.babyfish.jimmer.sql.ast.Executable;
import org.babyfish.jimmer.sql.ast.Predicate;
import org.babyfish.jimmer.sql.ast.query.Filterable;

import java.util.function.Supplier;

public interface MutableDelete extends Filterable, Executable {

    @OldChain
    MutableDelete where(Predicate... predicates);

    @OldChain
    @Override
    default MutableDelete whereIf(boolean condition, Predicate predicate) {
        if (condition) {
            where(predicate);
        }
        return this;
    }

    @OldChain
    @Override
    default MutableDelete whereIf(boolean condition, Supplier block) {
        if (condition) {
            where(block.get());
        }
        return this;
    }

    MutableDelete disableDissociation();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy