org.babyfish.jimmer.sql.ast.mutation.MutableDelete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
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();
}