接口 DeleteService<T,ID>

所有已知子接口:
SqlBeanService<T,ID>

public interface DeleteService<T,ID>
Delete 通用业务接口
版本:
1.0
作者:
Jovi
  • 方法详细资料

    • deleteById

      int deleteById(ID... id)
      根据id条件删除
      参数:
      id - 单个id或数组
      返回:
    • deleteBy

      int deleteBy(String where, Object... args)
      根据条件删除
      参数:
      where - 条件表达式
      args - 条件参数
      返回:
    • deleteBy

      int deleteBy(Wrapper where)
      根据条件删除
      参数:
      where - 条件包装器
      返回:
    • deleteBy

      int deleteBy(ConditionHandle<T> cond)
      根据条件删除
      参数:
      cond - Lambda条件
      返回:
    • delete

      int delete(Delete delete)
      删除(where条件为空会抛异常,因为删除全部非常危险)
      参数:
      delete - 删除对象
      返回:
    • delete

      int delete(Delete delete, boolean ignore)
      删除
      参数:
      delete - 删除对象
      ignore - 如果为true则不指定where条件也能执行,false则抛异常
      返回:
    • logicallyDeleteById

      int logicallyDeleteById(ID... id)
      逻辑删除根据id条件
      参数:
      id - 单个id或数组
      返回:
    • logicallyDeleteBy

      int logicallyDeleteBy(String where, Object... args)
      根据条件逻辑删除
      参数:
      where - 条件表达式
      args - 条件参数
      返回:
    • logicallyDeleteBy

      int logicallyDeleteBy(Wrapper where)
      根据条件逻辑删除
      参数:
      where - 条件包装器
      返回:
    • logicallyDeleteBy

      int logicallyDeleteBy(ConditionHandle<T> cond)
      根据条件逻辑删除
      参数:
      cond - Lambda条件
      返回: