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, isClosed
public 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 AbstractScrollableResults
public boolean next()
ScrollableResults
true
if there is another resultpublic boolean previous()
ScrollableResults
true
if there is a previous resultpublic boolean scroll(int positions)
ScrollableResults
positions
- a positive (forward) or negative (backward) number of rowstrue
if there is a result at the new locationpublic boolean last()
ScrollableResults
true
if there are any resultspublic boolean first()
ScrollableResults
true
if there are any resultspublic void beforeFirst()
ScrollableResults
public void afterLast()
ScrollableResults
public boolean isFirst()
ScrollableResults
true
if this is the first row of results, otherwise false
public boolean isLast()
ScrollableResults
true
if this is the last row of results.public int getRowNumber()
ScrollableResults
public boolean setRowNumber(int rowNumber)
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.Copyright © 2019 JBoss by Red Hat. All rights reserved.