接口 SelectService<T,ID>

类型参数:
T -
所有超级接口:
PagingService, Serializable
所有已知子接口:
SqlBeanService<T,ID>

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

    • selectById

      T selectById(ID id)
      根据id条件查询
      参数:
      id - 唯一id
      返回:
    • selectById

      <R> R selectById(Class<R> returnType, ID id)
      根据id条件查询(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      id - 唯一id
      返回:
    • selectByIds

      List<T> selectByIds(ID... ids)
      根据ids条件查询
      参数:
      ids - 唯一id数组
      返回:
    • selectByIds

      <R> List<R> selectByIds(Class<R> returnType, ID... ids)
      根据id条件查询(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      ids - 唯一id数组
      返回:
    • selectOne

      T selectOne(Select select)
      根据自定义条件查询 只返回一条记录
      参数:
      select - 查询对象
      返回:
    • selectOne

      <R> R selectOne(Class<R> returnType, Select select)
      根据自定义条件查询 只返回一条记录(可指定返回类型)
      参数:
      returnType - 指定返回到类型
      select - 查询对象
      返回:
    • selectMap

      Map<String,Object> selectMap(Select select)
      根据自定义条件查询返回Map
      参数:
      select - 查询对象
      返回:
    • selectOneBy

      T selectOneBy(String where, Object... args)
      根据条件查询
      参数:
      where - 查询条件
      args - 条件参数
      返回:
    • selectOneBy

      <R> R selectOneBy(Class<R> returnType, String where, Object... args)
      根据条件查询(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      where - 查询条件
      args - 条件参数
      返回:
    • selectOneBy

      T selectOneBy(Wrapper where)
      根据条件查询
      参数:
      where - 条件包装器
      返回:
    • selectOneBy

      T selectOneBy(ConditionHandle<T> cond)
      根据条件查询
      参数:
      cond - Lambda条件
      返回:
    • selectOneBy

      <R> R selectOneBy(Class<R> returnType, Wrapper where)
      根据条件查询
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      where - 条件包装器
      返回:
    • selectOneBy

      <R> R selectOneBy(Class<R> returnType, ConditionHandle<T> cond)
      根据条件查询
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      cond - Lambda条件
      返回:
    • selectBy

      List<T> selectBy(String where, Object... args)
      根据条件查询
      参数:
      where - 查询条件
      args - 条件参数
      返回:
    • selectBy

      List<T> selectBy(Wrapper where)
      根据条件查询
      参数:
      where - 条件包装器
      返回:
    • selectBy

      List<T> selectBy(ConditionHandle<T> cond)
      根据条件查询
      参数:
      cond - Lambda条件
      返回:
    • selectBy

      List<T> selectBy(Paging paging, String where, Object... args)
      根据条件查询
      参数:
      paging - 分页对象
      where - 查询条件
      args - 条件参数
      返回:
    • selectBy

      List<T> selectBy(Paging paging, Wrapper where)
      根据条件查询
      参数:
      paging - 分页对象
      where - 条件包装器
      返回:
    • selectBy

      List<T> selectBy(Paging paging, ConditionHandle<T> cond)
      根据条件查询
      参数:
      paging - 分页对象
      cond - Lambda条件
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, String where, Object... args)
      根据条件查询(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      where - 查询条件
      args - 条件参数
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, Wrapper where)
      根据条件查询(可指定返回类型、查询的表)
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      where - 条件包装器
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, ConditionHandle<T> cond)
      根据条件查询(可指定返回类型、查询的表)
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      cond - Lambda条件
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, Paging paging, String where, Object... args)
      根据条件查询(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      paging - 分页对象
      where - 查询条件
      args - 条件参数
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, Paging paging, Wrapper where)
      根据条件查询(可指定返回类型、查询的表)
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      paging - 分页对象
      where - 条件包装器
      返回:
    • selectBy

      <R> List<R> selectBy(Class<R> returnType, Paging paging, ConditionHandle<T> cond)
      根据条件查询(可指定返回类型、查询的表)
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      paging - 分页对象
      cond - Lambda条件
      返回:
    • countBy

      int countBy(String where, Object... args)
      根据条件查询统计
      参数:
      where - 查询条件
      args - 条件参数
      返回:
    • countBy

      int countBy(Wrapper where)
      根据条件查询统计
      参数:
      where - 条件包装器
      返回:
    • countBy

      int countBy(ConditionHandle<T> cond)
      根据条件查询统计
      参数:
      cond - Lambda条件
      返回:
    • count

      int count()
      统计全部
      返回:
    • select

      List<T> select()
      查询全部
      返回:
    • select

      <R> List<R> select(Class<R> returnType)
      查询全部(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      返回:
    • select

      List<T> select(Paging paging)
      查询全部
      参数:
      paging - 分页对象
      返回:
    • select

      <R> List<R> select(Class<R> returnType, Paging paging)
      查询全部(可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      paging - 分页对象
      返回:
    • selectMapList

      List<Map<String,Object>> selectMapList(Select select)
      根据自定义条件查询(可自动分页)返回List结果集
      参数:
      select - 查询对象
      返回:
    • select

      List<T> select(Select select)
      根据自定义条件查询(可自动分页)返回List
      参数:
      select - 查询对象
      返回:
    • select

      <R> List<R> select(Class<R> returnType, Select select)
      根据自定义条件查询(可自动分页)返回List (可指定返回类型、查询的表)
      参数:
      returnType - 指定返回到类型
      select - 查询对象
      返回:
    • count

      int count(Select select)
      根据自定义条件统计
      参数:
      select - 查询对象
      返回:
    • count

      int count(Class<?> returnType, Select select)
      根据自定义条件统计
      参数:
      returnType - 指定返回到类型
      select - 查询对象
      返回:
    • paging

      ResultData<T> paging(Select select, PageHelper<T> pageHelper)
      分页
      参数:
      select - 查询对象
      pageHelper - 分页助手
      返回:
    • paging

      ResultData<T> paging(Select select, int pagenum, int pagesize)
      分页
      参数:
      select - 查询对象
      pagenum - 当前页
      pagenum - 每页数量
      返回:
    • paging

      <R> ResultData<R> paging(Class<R> returnType, Select select, PageHelper<R> pageHelper)
      分页
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      select - 查询对象
      pageHelper - 分页助手
      返回:
    • paging

      <R> ResultData<R> paging(Class<R> returnType, Select select, int pagenum, int pagesize)
      分页
      类型参数:
      R -
      参数:
      returnType - 指定返回到类型
      select - 查询对象
      pagenum - 当前页
      pagenum - 每页数量
      返回: