类 EmptyScrollableResults

    • 构造器详细资料

      • EmptyScrollableResults

        public EmptyScrollableResults()
    • 方法详细资料

      • 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
      • scroll

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

        public int getRowNumber()
        从接口复制的说明: ScrollableResults
        Get the current position in the results. The first position is number 0 (unlike JDBC).
        指定者:
        getRowNumber 在接口中 ScrollableResults
        返回:
        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).
        指定者:
        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
      • get

        public Object get​(int i)
        从接口复制的说明: ScrollableResults
        Get the ith object in the current row of results, without initializing any other results in the row. This method may be used safely, regardless of the type of the column (ie. even for scalar results).
        指定者:
        get 在接口中 ScrollableResults
        参数:
        i - the column, numbered from zero
        返回:
        The requested result object; may return null
      • getType

        public Type getType​(int i)
        从接口复制的说明: ScrollableResults
        Get the type of the ith column of results.
        指定者:
        getType 在接口中 ScrollableResults
        参数:
        i - the column, numbered from zero
        返回:
        the Hibernate type
      • getInteger

        public Integer getInteger​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read an integer.
        指定者:
        getInteger 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as an integer
      • getLong

        public Long getLong​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a long.
        指定者:
        getLong 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a long
      • getFloat

        public Float getFloat​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a float.
        指定者:
        getFloat 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a float
      • getBoolean

        public Boolean getBoolean​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a boolean.
        指定者:
        getBoolean 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a boolean
      • getDouble

        public Double getDouble​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a double.
        指定者:
        getDouble 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a double
      • getShort

        public Short getShort​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a short.
        指定者:
        getShort 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a short
      • getByte

        public Byte getByte​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a byte.
        指定者:
        getByte 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a byte
      • getCharacter

        public Character getCharacter​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a char.
        指定者:
        getCharacter 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a char
      • getBinary

        public byte[] getBinary​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a binary (byte[]).
        指定者:
        getBinary 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a binary (byte[])
      • getText

        public String getText​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a String using streaming.
        指定者:
        getText 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a String
      • getBlob

        public Blob getBlob​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a blob.
        指定者:
        getBlob 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a Blob
      • getClob

        public Clob getClob​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a clob.
        指定者:
        getClob 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a Clob
      • getString

        public String getString​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a string.
        指定者:
        getString 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a String
      • getBigDecimal

        public BigDecimal getBigDecimal​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a BigDecimal.
        指定者:
        getBigDecimal 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a BigDecimal
      • getBigInteger

        public BigInteger getBigInteger​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a BigInteger.
        指定者:
        getBigInteger 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a BigInteger
      • getDate

        public Date getDate​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a Date.
        指定者:
        getDate 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a Date
      • getLocale

        public Locale getLocale​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a Locale.
        指定者:
        getLocale 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a Locale
      • getCalendar

        public Calendar getCalendar​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a Calendar.
        指定者:
        getCalendar 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a Calendar
      • getTimeZone

        public TimeZone getTimeZone​(int col)
        从接口复制的说明: ScrollableResults
        Convenience method to read a TimeZone.
        指定者:
        getTimeZone 在接口中 ScrollableResults
        参数:
        col - The column, numbered from zero
        返回:
        The column value as a TimeZone