Query#scroll()
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | beforeFirst()
Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result. |
| public void | close()
Redeclares java. |
| public boolean | |
| public Object[] | |
| public Object | Returns: The requested result object; may returnnullthe column, numbered from zero i)Get the ith object in the current row of results, without initializing any other results in the row. |
| public BigDecimal | Returns: The column value as a BigDecimalThe column, numbered from zero col)Convenience method to read a BigDecimal. |
| public BigInteger | Returns: The column value as a BigIntegerThe column, numbered from zero col)Convenience method to read a BigInteger. |
| public byte[] | Returns: The column value as a binary (byte[])The column, numbered from zero col)Convenience method to read a binary (byte[]). |
| public Blob | Returns: The column value as a BlobThe column, numbered from zero col)Convenience method to read a blob. |
| public Boolean | Returns: The column value as a booleanThe column, numbered from zero col)Convenience method to read a boolean. |
| public Byte | Returns: The column value as a byteThe column, numbered from zero col)Convenience method to read a byte. |
| public Calendar | Returns: The column value as a CalendarThe column, numbered from zero col)Convenience method to read a Calendar. |
| public Character | Returns: The column value as a charThe column, numbered from zero col)Convenience method to read a char. |
| public Clob | Returns: The column value as a ClobThe column, numbered from zero col)Convenience method to read a clob. |
| public Date | Returns: The column value as a DateThe column, numbered from zero col)Convenience method to read a Date. |
| public Double | Returns: The column value as a doubleThe column, numbered from zero col)Convenience method to read a double. |
| public Float | Returns: The column value as a floatThe column, numbered from zero col)Convenience method to read a float. |
| public Integer | Returns: The column value as an integerThe column, numbered from zero col)Convenience method to read an integer. |
| public Locale | Returns: The column value as a LocaleThe column, numbered from zero col)Convenience method to read a Locale. |
| public Long | Returns: The column value as a longThe column, numbered from zero col)Convenience method to read a long. |
| public int | Returns: The current position number, numbered from 0; -1 indicates that there is no current rowGet the current position in the results. |
| public Short | Returns: The column value as a shortThe column, numbered from zero col)Convenience method to read a short. |
| public String | Returns: The column value as a StringThe column, numbered from zero col)Convenience method to read a string. |
| public String | Returns: The column value as a StringThe column, numbered from zero col)Convenience method to read a String using streaming. |
| public TimeZone | Returns: The column value as a TimeZoneThe column, numbered from zero col)Convenience method to read a TimeZone. |
| public Type | Returns: the Hibernate typethe column, numbered from zero i)Get the type of the ith column of results. |
| public boolean | Returns: true if this is the first row of results, otherwise falseIs this the first result? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if there is a result at the new locationa positive (forward) or negative (backward) number of rows positions)Scroll the specified number of positions from the current position. |
| public boolean | Returns: true if there is a row at that row numberthe row number. A positive number indicates a value numbered from the first row; a
negative number indicates a value numbered from the last row. rowNumber)Set the current position in the result set. |
| afterLast | back to summary |
|---|---|
| public void afterLast() Go to a location just after the last result. | |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result. | |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Release resources immediately. | |
| first | back to summary |
|---|---|
| public boolean first() Go to the first result.
| |
| get | back to summary |
|---|---|
| public Object[] get() Get the current row of results.
| |
| get | back to summary |
|---|---|
| public Object get(int i) 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).
| |
| getBigDecimal | back to summary |
|---|---|
| public BigDecimal getBigDecimal(int col) Convenience method to read a BigDecimal.
| |
| getBigInteger | back to summary |
|---|---|
| public BigInteger getBigInteger(int col) Convenience method to read a BigInteger.
| |
| getBinary | back to summary |
|---|---|
| public byte[] getBinary(int col) Convenience method to read a binary (byte[]).
| |
| getBlob | back to summary |
|---|---|
| public Blob getBlob(int col) Convenience method to read a blob.
| |
| getBoolean | back to summary |
|---|---|
| public Boolean getBoolean(int col) Convenience method to read a boolean.
| |
| getByte | back to summary |
|---|---|
| public Byte getByte(int col) Convenience method to read a byte.
| |
| getCalendar | back to summary |
|---|---|
| public Calendar getCalendar(int col) Convenience method to read a Calendar.
| |
| getCharacter | back to summary |
|---|---|
| public Character getCharacter(int col) Convenience method to read a char.
| |
| getClob | back to summary |
|---|---|
| public Clob getClob(int col) Convenience method to read a clob.
| |
| getDate | back to summary |
|---|---|
| public Date getDate(int col) Convenience method to read a Date.
| |
| getDouble | back to summary |
|---|---|
| public Double getDouble(int col) Convenience method to read a double.
| |
| getFloat | back to summary |
|---|---|
| public Float getFloat(int col) Convenience method to read a float.
| |
| getInteger | back to summary |
|---|---|
| public Integer getInteger(int col) Convenience method to read an integer.
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale(int col) Convenience method to read a Locale.
| |
| getLong | back to summary |
|---|---|
| public Long getLong(int col) Convenience method to read a long.
| |
| getRowNumber | back to summary |
|---|---|
| public int getRowNumber() Get the current position in the results. The first position is number 0 (unlike JDBC).
| |
| getShort | back to summary |
|---|---|
| public Short getShort(int col) Convenience method to read a short.
| |
| getString | back to summary |
|---|---|
| public String getString(int col) Convenience method to read a string.
| |
| getText | back to summary |
|---|---|
| public String getText(int col) Convenience method to read a String using streaming.
| |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone(int col) Convenience method to read a TimeZone.
| |
| getType | back to summary |
|---|---|
| public Type getType(int i) Get the type of the ith column of results.
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() Is this the first result?
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() Is this the last result?
| |
| last | back to summary |
|---|---|
| public boolean last() Go to the last result.
| |
| next | back to summary |
|---|---|
| public boolean next() Advance to the next result.
| |
| previous | back to summary |
|---|---|
| public boolean previous() Retreat to the previous result.
| |
| scroll | back to summary |
|---|---|
| public boolean scroll(int positions) Scroll the specified number of positions from the current position.
| |
| setRowNumber | back to summary |
|---|---|
| public boolean setRowNumber(int rowNumber) Set the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).
| |