接口 QueryOperations<C extends QueryOperations<C>>

类型参数:
C - 子类类型
所有超级接口:
Between<C>, ConditionOperations<C>, Eq<C>, Expression<C>, Ge<C>, Gt<C>, In<C>, IsNotNull<C>, IsNull<C>, Le<C>, Like<C>, LikeLeft<C>, LikeRight<C>, LimitOperations<C>, Lt<C>, Ne<C>, NotBetween<C>, NotIn<C>, NotLike<C>, ResolveFieldName
所有已知子接口:
QueryAction<R>

public interface QueryOperations<C extends QueryOperations<C>> extends ConditionOperations<C>, LimitOperations<C>, ResolveFieldName
查询操作
从以下版本开始:
0.0.4
作者:
zeng
  • 方法详细资料

    • select

      C select(String... fields)
      选择字段
      参数:
      fields - 字段数组
      返回:
      具体实现
    • select

      C select(Enum<?>... fields)
      选择字段
      参数:
      fields - 字段枚举数组
      返回:
      具体实现
    • select

      C select(boolean condition, String... fields)
      选择字段
      参数:
      condition - 执行条件
      fields - 字段数组
      返回:
      具体实现
    • select

      C select(boolean condition, Enum<?>... fields)
      选择字段
      参数:
      condition - 执行条件
      fields - 字段枚举数组
      返回:
      具体实现
    • selectAs

      C selectAs(Enum<?> field, String fieldAlias)
      选择字段
      参数:
      field - 字段枚举
      fieldAlias - 字段别名
      返回:
      具体实现
    • selectAs

      C selectAs(Enum<?> field, Enum<?> fieldAlias)
      选择字段
      参数:
      field - 字段枚举
      fieldAlias - 字段别名枚举
      返回:
      具体实现
    • selectAs

      C selectAs(boolean condition, Enum<?> field, String fieldAlias)
      选择字段
      参数:
      condition - 执行条件
      field - 字段枚举
      fieldAlias - 字段别名
      返回:
      具体实现
    • selectAs

      C selectAs(boolean condition, Enum<?> field, Enum<?> fieldAlias)
      选择字段
      参数:
      condition - 执行条件
      field - 字段枚举
      fieldAlias - 字段别名枚举
      返回:
      具体实现
    • pageable

      C pageable(org.elsfs.tool.core.page.IPage<?> pageable)
      设置分页信息
      参数:
      pageable - 可分页对象
      返回:
      具体实现
    • pageable

      C pageable(boolean condition, org.elsfs.tool.core.page.IPage<?> page)
      设置分页信息
      参数:
      condition - 执行条件
      page - 可分页对象
      返回:
      具体实现
    • limit

      C limit(boolean condition, long offset, long num)
      限制查询数据
      参数:
      condition - 执行条件
      offset - 开始位置
      num - 数量
      返回:
      具体实现
    • limit

      C limit(long offset, long num)
      限制查询数据
      参数:
      offset - 开始位置
      num - 数量
      返回:
      具体实现
    • offset

      C offset(long num)
      偏移数量
      参数:
      num - 数量
      返回:
      具体实现
    • offset

      C offset(boolean condition, long num)
      偏移数量
      参数:
      condition - 执行条件
      num - 数量
      返回:
      具体实现
    • groupBy

      C groupBy(boolean condition, String field)
      分组:GROUP BY 字段, ...

      例: groupBy("id")

      参数:
      condition - 执行条件
      field - 单个字段
      返回:
      children
    • groupBy

      C groupBy(boolean condition, Enum<?> field)
      分组:GROUP BY 字段, ...

      例: groupBy("id")

      参数:
      condition - 执行条件
      field - 单个字段枚举
      返回:
      children
    • groupBy

      C groupBy(String field)
      分组:GROUP BY 字段, ...

      例: groupBy("id")

      参数:
      field - 单个字段
      返回:
      children
    • groupBy

      default C groupBy(Enum<?> field)
      分组:GROUP BY 字段, ...

      例: groupBy("id")

      参数:
      field - 单个字段枚举
      返回:
      children
    • groupBy

      C groupBy(List<String> fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      fields - 字段数组
      返回:
      children
    • groupBy

      C groupBy(boolean condition, List<String> fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段数组
      返回:
      children
    • groupBy

      C groupBy(boolean condition, String... fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段数组
      返回:
      children
    • groupBy

      C groupBy(boolean condition, Enum<?>... fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举数组
      返回:
      children
    • groupBy

      C groupBy(String... fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      fields - 字段数组
      返回:
      children
    • groupBy

      C groupBy(Enum<?>... fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举数组
      返回:
      children
    • groupByEnum

      C groupByEnum(boolean condition, List<Enum<?>> fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举数组
      返回:
      children
    • groupByEnum

      C groupByEnum(List<Enum<?>> fields)
      分组:GROUP BY 字段, ...

      例: groupBy(Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举数组
      返回:
      children
    • orderByAsc

      C orderByAsc(boolean condition, String field)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, "id")

      参数:
      condition - 执行条件
      field - 单个字段
      返回:
      children
    • orderByAsc

      C orderByAsc(boolean condition, Enum<?> field)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, "id")

      参数:
      condition - 执行条件
      field - 单个字段枚举
      返回:
      children
    • orderByAsc

      C orderByAsc(String field)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, "id")

      参数:
      field - 单个字段
      返回:
      children
    • orderByAsc

      default C orderByAsc(Enum<?> field)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, "id")

      参数:
      field - 单个字段枚举
      返回:
      children
    • orderByAsc

      C orderByAsc(boolean condition, List<String> fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段数组
      返回:
      children
    • orderByAsc

      C orderByAsc(boolean condition, String... fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段数组
      返回:
      children
    • orderByAsc

      C orderByAsc(boolean condition, Enum<?>... fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举数组
      返回:
      children
    • orderByAsc

      C orderByAsc(String... fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段数组
      返回:
      children
    • orderByAsc

      C orderByAsc(Enum<?>... fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举数组
      返回:
      children
    • orderByAsc

      C orderByAsc(List<String> fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段数组
      返回:
      children
    • orderByEnumAsc

      C orderByEnumAsc(boolean condition, List<Enum<?>> fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举数组
      返回:
      children
    • orderByEnumAsc

      C orderByEnumAsc(List<Enum<?>> fields)
      排序:ORDER BY 字段, ... ASC

      例: orderByAsc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举数组
      返回:
      children
    • orderBy

      C orderBy(boolean isAsc, String field)
      排序:ORDER BY 字段, ...

      例: orderBy(true, "id")

      参数:
      isAsc - 是否是 ASC 排序
      field - 单个字段
      返回:
      children
    • orderBy

      default C orderBy(boolean isAsc, Enum<?> field)
      排序:ORDER BY 字段, ...

      例: orderBy(true, "id")

      参数:
      isAsc - 是否是 ASC 排序
      field - 单个字段枚举
      返回:
      children
    • orderBy

      C orderBy(boolean isAsc, List<String> fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      isAsc - 是否是 ASC 排序
      fields - 字段列表
      返回:
      children
    • orderBy

      C orderBy(boolean condition, boolean isAsc, String field)
      排序:ORDER BY 字段, ...

      例: orderBy(true, "id")

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      field - 单个字段
      返回:
      children
    • orderBy

      C orderBy(boolean condition, boolean isAsc, Enum<?> field)
      排序:ORDER BY 字段, ...

      例: orderBy(true, "id")

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      field - 单个字段枚举
      返回:
      children
    • orderBy

      C orderBy(boolean condition, boolean isAsc, List<String> fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      fields - 字段列表
      返回:
      children
    • orderBy

      C orderBy(boolean condition, boolean isAsc, String... fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      fields - 字段列表
      返回:
      children
    • orderBy

      C orderBy(boolean condition, boolean isAsc, Enum<?>... fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      fields - 字段枚举列表
      返回:
      children
    • orderBy

      C orderBy(boolean isAsc, String... fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      isAsc - 是否是 ASC 排序
      fields - 字段列表
      返回:
      children
    • orderBy

      C orderBy(boolean isAsc, Enum<?>... fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      isAsc - 是否是 ASC 排序
      fields - 字段枚举列表
      返回:
      children
    • orderByDesc

      C orderByDesc(boolean condition, String field)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, "id")

      参数:
      condition - 执行条件
      field - 字段
      返回:
      children
    • orderByDesc

      C orderByDesc(boolean condition, Enum<?> field)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, "id")

      参数:
      condition - 执行条件
      field - 字段枚举
      返回:
      children
    • orderByDesc

      C orderByDesc(String field)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, "id")

      参数:
      field - 字段
      返回:
      children
    • orderByDesc

      default C orderByDesc(Enum<?> field)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, "id")

      参数:
      field - 字段枚举
      返回:
      children
    • orderByDesc

      C orderByDesc(boolean condition, List<String> fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段列表
      返回:
      children
    • orderByDesc

      C orderByDesc(List<String> fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段列表
      返回:
      children
    • orderByDesc

      C orderByDesc(boolean condition, String... fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段列表
      返回:
      children
    • orderByDesc

      C orderByDesc(boolean condition, Enum<?>... fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举列表
      返回:
      children
    • orderByDesc

      C orderByDesc(String... fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段列表
      返回:
      children
    • orderByDesc

      C orderByDesc(Enum<?>... fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举列表
      返回:
      children
    • orderByEnum

      C orderByEnum(boolean isAsc, List<Enum<?>> fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      isAsc - 是否是 ASC 排序
      fields - 字段枚举列表
      返回:
      children
    • orderByEnum

      C orderByEnum(boolean condition, boolean isAsc, List<Enum<?>> fields)
      排序:ORDER BY 字段, ...

      例: orderBy(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      isAsc - 是否是 ASC 排序
      fields - 字段枚举列表
      返回:
      children
    • orderByEnumDesc

      C orderByEnumDesc(List<Enum<?>> fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      fields - 字段枚举列表
      返回:
      children
    • orderByEnumDesc

      C orderByEnumDesc(boolean condition, List<Enum<?>> fields)
      排序:ORDER BY 字段, ... DESC

      例: orderByDesc(true, Arrays.asList("id", "name"))

      参数:
      condition - 执行条件
      fields - 字段枚举列表
      返回:
      children
    • having

      C having(String sqlValue, Object... params)
      HAVING ( sql语句 )

      例1: having("sum(age) > 10")

      例2: having("sum(age) > {0}", 10)

      参数:
      sqlValue - sql 语句
      params - 参数数组
      返回:
      children
    • having

      C having(boolean condition, String sqlValue, Object... params)
      HAVING ( sql语句 )

      例1: having("sum(age) > 10")

      例2: having("sum(age) > {0}", 10)

      参数:
      condition - 执行条件
      sqlValue - sql 语句
      params - 参数数组
      返回:
      children