类 FetchingScrollableResultsImpl

    • 构造器详细资料

      • FetchingScrollableResultsImpl

        public FetchingScrollableResultsImpl​(ResultSet rs,
                                             PreparedStatement ps,
                                             SharedSessionContractImplementor sess,
                                             Loader loader,
                                             QueryParameters queryParameters,
                                             Type[] types,
                                             HolderInstantiator holderInstantiator)
        Constructs a FetchingScrollableResultsImpl.
        参数:
        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
    • 方法详细资料

      • next

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

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

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

        public boolean last()
        从接口复制的说明: ScrollableResults
        Go to the last result.
        返回:
        true if there are any results
      • first

        public boolean first()
        从接口复制的说明: ScrollableResults
        Go to the first result.
        返回:
        true if there are any results
      • 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.
      • afterLast

        public void afterLast()
        从接口复制的说明: ScrollableResults
        Go to a location just after the last result.
      • isFirst

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

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

        public int getRowNumber()
        从接口复制的说明: ScrollableResults
        Get the current position in the results. The first position is number 0 (unlike JDBC).
        返回:
        The current position number, numbered from 0; -1 indicates that there is no current row
      • setRowNumber

        public boolean setRowNumber​(int rowNumber)
        从接口复制的说明: ScrollableResults
        Set the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).
        参数:
        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