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

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

package com.easy.query.api.proxy.entity.delete;

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 com.easy.query.core.proxy.ProxyEntity;

import java.util.Collection;

/**
 * @FileName: EasyExpressionDelete.java
 * @Description: 文件说明
 * @Date: 2023/2/28 12:24
 * @author xuejiaming
 */
public interface ExpressionDeletable, T> 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