cn.vonce.sql.service.DeleteService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vonce-sqlbean-core Show documentation
Show all versions of vonce-sqlbean-core Show documentation
This is the core project of Sqlbean.
The newest version!
package cn.vonce.sql.service;
import cn.vonce.sql.bean.Delete;
import cn.vonce.sql.helper.Wrapper;
/**
* Delete 通用业务接口
*
* @param
* @author Jovi
* @version 1.0
* @email [email protected]
* @date 2019年6月27日下午3:57:33
*/
public interface DeleteService {
/**
* 根据id条件删除
*
* @param id 单个id或数组
* @return
*/
int deleteById(ID... id);
/**
* 根据条件删除
*
* @param where 条件表达式
* @param args 条件参数
* @return
*/
int deleteBy(String where, Object... args);
/**
* 根据条件删除
*
* @param where 条件包装器
* @return
*/
int deleteBy(Wrapper where);
/**
* 删除(where条件为空会抛异常,因为删除全部非常危险)
*
* @param delete 删除对象
* @return
*/
int delete(Delete delete);
/**
* 删除
*
* @param delete 删除对象
* @param ignore 如果为true则不指定where条件也能执行,false则抛异常
* @return
*/
int delete(Delete delete, boolean ignore);
/**
* 逻辑删除根据id条件
*
* @param id 单个id或数组
* @return
*/
int logicallyDeleteById(ID... id);
/**
* 根据条件逻辑删除
*
* @param where 条件表达式
* @param args 条件参数
* @return
*/
int logicallyDeleteBy(String where, Object... args);
/**
* 根据条件逻辑删除
*
* @param where 条件包装器
* @return
*/
int logicallyDeleteBy(Wrapper where);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy