Interface ExistsQuery

All Superinterfaces:
Executable
All Known Implementing Classes:
Dao

public interface ExistsQuery extends Executable
存在查询
Author:
Maning
  • Method Details

    • exists

      default boolean exists(Class<?> entityClass, Consumer<Select> customizer)
      存在查询
      Parameters:
      entityClass - 实体类
      customizer - 查询自定义
      Returns:
      是否存在
    • exists

      default boolean exists(Class<?> entityClass, Collection<? extends Condition> conditions)
      存在查询
      Parameters:
      entityClass - 实体类
      conditions - 条件
      Returns:
      是否存在
    • exists

      default boolean exists(Class<?> entityClass, Condition... conditions)
      存在查询
      Parameters:
      entityClass - 实体类
      conditions - 条件
      Returns:
      是否存在
    • exists

      default boolean exists(Class<?> entityClass, Searchable search, Collection<? extends Condition> conditions)
      存在查询
      Parameters:
      entityClass - 实体类
      search - 筛选对象
      conditions - 条件
      Returns:
      是否存在
    • exists

      default boolean exists(Class<?> entityClass, Searchable search, Condition... conditions)
      存在查询
      Parameters:
      entityClass - 实体类
      search - 筛选对象
      conditions - 条件
      Returns:
      是否存在
    • existsById

      default boolean existsById(Class<?> entityClass, Serializable id, Collection<? extends Condition> conditions)
      存在查询通过ID
      Parameters:
      entityClass - 实体类
      id - ID
      conditions - 条件
      Returns:
      是否存在
    • existsById

      default boolean existsById(Class<?> entityClass, Serializable id, Condition... conditions)
      存在查询通过ID
      Parameters:
      entityClass - 实体类
      id - ID
      conditions - 条件
      Returns:
      是否存在