com.easy.query.api4j.delete.ExpressionDeletable Maven / Gradle / Ivy
package com.easy.query.api4j.delete;
import com.easy.query.api4j.sql.SQLWherePredicate;
import com.easy.query.core.basic.api.delete.Deletable;
import com.easy.query.core.basic.api.internal.ConfigureVersionable;
import com.easy.query.core.basic.api.internal.WithVersionable;
import com.easy.query.core.expression.lambda.SQLExpression1;
import java.util.Collection;
/**
* @FileName: EasyExpressionDelete.java
* @Description: 文件说明
* @Date: 2023/2/28 12:24
* @author xuejiaming
*/
public interface ExpressionDeletable extends Deletable>, WithVersionable>, ConfigureVersionable> {
default ExpressionDeletable where(SQLExpression1> whereExpression) {
return where(true, whereExpression);
}
ExpressionDeletable where(boolean condition, SQLExpression1> whereExpression);
default ExpressionDeletable whereById(Object id) {
return whereById(true, id);
}
ExpressionDeletable whereById(boolean condition, Object id);
default ExpressionDeletable whereByIds(Collection ids) {
return whereByIds(true, ids);
}
ExpressionDeletable whereByIds(boolean condition, Collection ids);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy