类 Query

    • 构造器详细资料

      • Query

        public Query​(SqlToyContext sqlToyContext,
                     DataSource dataSource)
        参数:
        sqlToyContext -
        dataSource -
    • 方法详细资料

      • fetchSize

        public Query fetchSize​(int fetchSize)
      • sql

        public Query sql​(String sql)
        参数:
        sql -
        返回:
      • humpMapLabel

        public Query humpMapLabel​(Boolean isHump)
      • names

        public Query names​(String... names)
        参数:
        names -
        返回:
      • values

        public Query values​(Object... values)
        参数:
        values -
        返回:
      • resultType

        public Query resultType​(Class<?> resultType)
      • getValue

        public <T> T getValue​(Class<T> resultType)
        类型参数:
        T -
        参数:
        resultType -
        返回:
      • getValue

        public Object getValue()
        返回:
      • getOne

        public Object getOne()
        返回:
      • count

        public Long count()
        返回:
      • find

        public List<?> find()
        返回:
      • findTop

        public List<?> findTop​(double topSize)
        参数:
        topSize -
        返回:
      • findRandom

        public List<?> findRandom​(double randomSize)
        参数:
        randomSize -
        返回:
      • findPage

        public Page<?> findPage​(Page page)
        参数:
        page -
        返回: