public class FetchingScrollableResultsImpl extends AbstractScrollableResults
| Constructor and Description |
|---|
FetchingScrollableResultsImpl(ResultSet rs,
PreparedStatement ps,
SharedSessionContractImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator)
Constructs a FetchingScrollableResultsImpl.
|
| 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.
|
boolean |
first()
Go to the first result.
|
protected Object[] |
getCurrentRow() |
int |
getRowNumber()
Get the current position in the results.
|
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 positions)
Scroll the specified number of positions from the current position.
|
boolean |
setRowNumber(int rowNumber)
Set the current position in the result set.
|
afterScrollOperation, close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getNumberOfTypes, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypes, isClosedpublic FetchingScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
rs - The scrollable result setps - The prepared statement used to obtain the result setsess - The originating sessionloader - The loaderqueryParameters - query parameterstypes - The result typesholderInstantiator - Ughprotected Object[] getCurrentRow()
getCurrentRow in class AbstractScrollableResultspublic boolean next()
ScrollableResultstrue if there is another resultpublic boolean previous()
ScrollableResultstrue if there is a previous resultpublic boolean scroll(int positions)
ScrollableResultspositions - a positive (forward) or negative (backward) number of rowstrue if there is a result at the new locationpublic boolean last()
ScrollableResultstrue if there are any resultspublic boolean first()
ScrollableResultstrue if there are any resultspublic void beforeFirst()
ScrollableResultspublic void afterLast()
ScrollableResultspublic boolean isFirst()
ScrollableResultstrue if this is the first row of results, otherwise falsepublic boolean isLast()
ScrollableResultstrue if this is the last row of results.public int getRowNumber()
ScrollableResultspublic boolean setRowNumber(int rowNumber)
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 © 2019 JBoss by Red Hat. All rights reserved.