public class ScrollableResultsImpl extends Object implements ScrollableResults
The following methods that change the value of 'current' will check and set its value to either 'afterLast' or 'beforeFirst' depending on direction. This is to prevent rogue values from setting it outside the boundaries of the results.
Query| Constructor and Description |
|---|
ScrollableResultsImpl(int fetchSize,
org.hibernate.search.query.engine.spi.DocumentExtractor extractor,
Loader loader,
SessionImplementor sessionImplementor) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast()
Go to a location just after the last result.
|
void |
beforeFirst()
Go to a location just before first result, This is the location of the cursor on a newly returned
scrollable result.
|
void |
close()
Release resources immediately.
|
boolean |
first()
Go to the first result.
|
Object[] |
get()
Get the current row of results.
|
Object |
get(int i)
This method is not supported on Lucene based queries
|
BigDecimal |
getBigDecimal(int col)
This method is not supported on Lucene based queries
|
BigInteger |
getBigInteger(int col)
This method is not supported on Lucene based queries
|
byte[] |
getBinary(int col)
This method is not supported on Lucene based queries
|
Blob |
getBlob(int col)
This method is not supported on Lucene based queries
|
Boolean |
getBoolean(int col)
This method is not supported on Lucene based queries
|
Byte |
getByte(int col)
This method is not supported on Lucene based queries
|
Calendar |
getCalendar(int col)
This method is not supported on Lucene based queries
|
Character |
getCharacter(int col)
This method is not supported on Lucene based queries
|
Clob |
getClob(int col)
This method is not supported on Lucene based queries
|
Date |
getDate(int col)
This method is not supported on Lucene based queries
|
Double |
getDouble(int col)
This method is not supported on Lucene based queries
|
Float |
getFloat(int col)
This method is not supported on Lucene based queries
|
Integer |
getInteger(int col)
This method is not supported on Lucene based queries
|
Locale |
getLocale(int col)
This method is not supported on Lucene based queries
|
Long |
getLong(int col)
This method is not supported on Lucene based queries
|
int |
getRowNumber()
Get the current position in the results.
|
Short |
getShort(int col)
This method is not supported on Lucene based queries
|
String |
getString(int col)
This method is not supported on Lucene based queries
|
String |
getText(int col)
This method is not supported on Lucene based queries
|
TimeZone |
getTimeZone(int col)
This method is not supported on Lucene based queries
|
Type |
getType(int i)
This method is not supported on Lucene based queries
|
boolean |
isFirst()
Is this the first result?
|
boolean |
isLast()
Is this the last result?
|
boolean |
last()
Go to the last result.
|
boolean |
next()
Advance to the next result.
|
boolean |
previous()
Retreat to the previous result.
|
boolean |
scroll(int i)
Scroll the specified number of positions from the current position.
|
boolean |
setRowNumber(int rowNumber)
Set the current position in the result set.
|
public ScrollableResultsImpl(int fetchSize,
org.hibernate.search.query.engine.spi.DocumentExtractor extractor,
Loader loader,
SessionImplementor sessionImplementor)
public boolean next()
next in interface ScrollableResultstrue if there is another resultpublic boolean previous()
ScrollableResultsprevious in interface ScrollableResultstrue if there is a previous resultpublic boolean scroll(int i)
ScrollableResultsscroll in interface ScrollableResultsi - a positive (forward) or negative (backward) number of rowstrue if there is a result at the new locationpublic boolean last()
ScrollableResultslast in interface ScrollableResultstrue if there are any resultspublic boolean first()
ScrollableResultsfirst in interface ScrollableResultstrue if there are any resultspublic void beforeFirst()
ScrollableResultsbeforeFirst in interface ScrollableResultspublic void afterLast()
ScrollableResultsafterLast in interface ScrollableResultspublic boolean isFirst()
ScrollableResultsisFirst in interface ScrollableResultstrue if this is the first row of results, otherwise falsepublic boolean isLast()
ScrollableResultsisLast in interface ScrollableResultstrue if this is the last row of results.public void close()
ScrollableResultsclose in interface Closeableclose in interface AutoCloseableclose in interface ScrollableResultspublic Object[] get()
ScrollableResultsget in interface ScrollableResultspublic Object get(int i)
get in interface ScrollableResultsi - the column, numbered from zeronullUnsupportedOperationException - always thrownpublic Type getType(int i)
getType in interface ScrollableResultsi - the column, numbered from zeroUnsupportedOperationException - always thrownpublic Integer getInteger(int col)
getInteger in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Long getLong(int col)
getLong in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Float getFloat(int col)
getFloat in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Boolean getBoolean(int col)
getBoolean in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Double getDouble(int col)
getDouble in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Short getShort(int col)
getShort in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Byte getByte(int col)
getByte in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Character getCharacter(int col)
getCharacter in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic byte[] getBinary(int col)
getBinary in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic String getText(int col)
getText in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Blob getBlob(int col)
getBlob in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Clob getClob(int col)
getClob in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic String getString(int col)
getString in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic BigDecimal getBigDecimal(int col)
getBigDecimal in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic BigInteger getBigInteger(int col)
getBigInteger in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Date getDate(int col)
getDate in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Locale getLocale(int col)
getLocale in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic Calendar getCalendar(int col)
getCalendar in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic TimeZone getTimeZone(int col)
getTimeZone in interface ScrollableResultscol - The column, numbered from zeroUnsupportedOperationException - always thrownpublic int getRowNumber()
ScrollableResultsgetRowNumber in interface ScrollableResultspublic boolean setRowNumber(int rowNumber)
ScrollableResultssetRowNumber in interface ScrollableResultsrowNumber - 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.Copyright © 2018 JBoss by Red Hat. All rights reserved.