Query#scroll()
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | |
| public Object[] | |
| public Object | Returns: an object of any Hibernate type or nullthe 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 | |
| public BigInteger | |
| public byte[] | |
| public Blob | |
| public Boolean | |
| public Byte | |
| public Calendar | |
| public Character | |
| public Clob | |
| public Date | |
| public Double | |
| public Float | |
| public Integer | |
| public Locale | |
| public Long | |
| public int | Returns: the row number, numbered from 0, or -1 if there is no current rowGet the current location in the result set. |
| public Short | |
| public String | |
| public String | |
| public TimeZone | |
| public Type | Returns: the Hibernate typethe column, numbered from zero i)Get the type of the ith column of results |
| public boolean | |
| 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 i)Scroll an arbitrary number of locations |
| public boolean | Returns: true if there is a row at that row numberthe row number, numbered from the last row, in the
case of a negative row number rowNumber)Set the current location in the result set, numbered from either the first row (row number 0), or the last row (row number -1). |
| afterLast | back to summary |
|---|---|
| public void afterLast() throws HibernateException Go to a location just after the last result | |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() throws HibernateException Go to a location just before first result (this is the initial location) | |
| close | back to summary |
|---|---|
| public void close() throws HibernateException Release resources immediately. | |
| first | back to summary |
|---|---|
| public boolean first() throws HibernateException Go to the first result
| |
| get | back to summary |
|---|---|
| public Object[] get() throws HibernateException Get the current row of results
| |
| get | back to summary |
|---|---|
| public Object get(int i) throws HibernateException 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) throws HibernateException Convenience method to read a big_decimal | |
| getBigInteger | back to summary |
|---|---|
| public BigInteger getBigInteger(int col) throws HibernateException Convenience method to read a big_integer | |
| getBinary | back to summary |
|---|---|
| public byte[] getBinary(int col) throws HibernateException Convenience method to read a binary | |
| getBlob | back to summary |
|---|---|
| public Blob getBlob(int col) throws HibernateException Convenience method to read a blob | |
| getBoolean | back to summary |
|---|---|
| public Boolean getBoolean(int col) throws HibernateException Convenience method to read a boolean | |
| getByte | back to summary |
|---|---|
| public Byte getByte(int col) throws HibernateException Convenience method to read a byte | |
| getCalendar | back to summary |
|---|---|
| public Calendar getCalendar(int col) throws HibernateException Convenience method to read a calendar or calendar_date | |
| getCharacter | back to summary |
|---|---|
| public Character getCharacter(int col) throws HibernateException Convenience method to read a character | |
| getClob | back to summary |
|---|---|
| public Clob getClob(int col) throws HibernateException Convenience method to read a clob | |
| getDate | back to summary |
|---|---|
| public Date getDate(int col) throws HibernateException Convenience method to read a date, time or timestamp | |
| getDouble | back to summary |
|---|---|
| public Double getDouble(int col) throws HibernateException Convenience method to read a double | |
| getFloat | back to summary |
|---|---|
| public Float getFloat(int col) throws HibernateException Convenience method to read a float | |
| getInteger | back to summary |
|---|---|
| public Integer getInteger(int col) throws HibernateException Convenience method to read an integer | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale(int col) throws HibernateException Convenience method to read a locale | |
| getLong | back to summary |
|---|---|
| public Long getLong(int col) throws HibernateException Convenience method to read a long | |
| getRowNumber | back to summary |
|---|---|
| public int getRowNumber() throws HibernateException Get the current location in the result set. The first row is number 0, contrary to JDBC.
| |
| getShort | back to summary |
|---|---|
| public Short getShort(int col) throws HibernateException Convenience method to read a short | |
| getString | back to summary |
|---|---|
| public String getString(int col) throws HibernateException Convenience method to read a string | |
| getText | back to summary |
|---|---|
| public String getText(int col) throws HibernateException Convenience method to read text | |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone(int col) throws HibernateException 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() throws HibernateException Is this the first result?
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() throws HibernateException Is this the last result?
| |
| last | back to summary |
|---|---|
| public boolean last() throws HibernateException Go to the last result
| |
| next | back to summary |
|---|---|
| public boolean next() throws HibernateException Advance to the next result
| |
| previous | back to summary |
|---|---|
| public boolean previous() throws HibernateException Retreat to the previous result
| |
| scroll | back to summary |
|---|---|
| public boolean scroll(int i) throws HibernateException Scroll an arbitrary number of locations
| |
| setRowNumber | back to summary |
|---|---|
| public boolean setRowNumber(int rowNumber) throws HibernateException Set the current location in the result set, numbered from either the first row (row number 0), or the last row (row number -1).
| |