类 ScrollableResultsImpl

    • 构造器详细资料

      • ScrollableResultsImpl

        public ScrollableResultsImpl​(ResultSet rs,
                                     PreparedStatement ps,
                                     SharedSessionContractImplementor sess,
                                     Loader loader,
                                     QueryParameters queryParameters,
                                     Type[] types,
                                     HolderInstantiator holderInstantiator)
        Constructs a ScrollableResultsImpl using the specified information.
        参数:
        rs - The scrollable result set
        ps - The prepared statement used to obtain the result set
        sess - The originating session
        loader - The loader
        queryParameters - query parameters
        types - The result types
        holderInstantiator - Ugh
    • 方法详细资料

      • scroll

        public boolean scroll​(int i)
        从接口复制的说明: ScrollableResults
        Scroll the specified number of positions from the current position.
        指定者:
        scroll 在接口中 ScrollableResults
        参数:
        i - a positive (forward) or negative (backward) number of rows
        返回:
        true if there is a result at the new location
      • next

        public boolean next()
        从接口复制的说明: ScrollableResults
        Advance to the next result.
        指定者:
        next 在接口中 ScrollableResults
        返回:
        true if there is another result
      • previous

        public boolean previous()
        从接口复制的说明: ScrollableResults
        Retreat to the previous result.
        指定者:
        previous 在接口中 ScrollableResults
        返回:
        true if there is a previous result
      • beforeFirst

        public void beforeFirst()
        从接口复制的说明: ScrollableResults
        Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result.
        指定者:
        beforeFirst 在接口中 ScrollableResults
      • isFirst

        public boolean isFirst()
        从接口复制的说明: ScrollableResults
        Is this the first result?
        指定者:
        isFirst 在接口中 ScrollableResults
        返回:
        true if this is the first row of results, otherwise false
      • isLast

        public boolean isLast()
        从接口复制的说明: ScrollableResults
        Is this the last result?
        指定者:
        isLast 在接口中 ScrollableResults
        返回:
        true if this is the last row of results.
      • setRowNumber

        public boolean setRowNumber​(int rowNumber)
                             throws HibernateException
        从接口复制的说明: ScrollableResults
        Set the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).
        指定者:
        setRowNumber 在接口中 ScrollableResults
        参数:
        rowNumber - the row number. A positive number indicates a value numbered from the first row; a negative number indicates a value numbered from the last row.
        返回:
        true if there is a row at that row number
        抛出:
        HibernateException