public class EmptyScrollableResults extends Object implements ScrollableResultsImplementor
| Modifier and Type | Field and Description |
|---|---|
static ScrollableResultsImplementor |
INSTANCE |
| Constructor and Description |
|---|
EmptyScrollableResults() |
| 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)
Get the ith object in the current row of results, without
initializing any other results in the row.
|
BigDecimal |
getBigDecimal(int col)
Convenience method to read a BigDecimal.
|
BigInteger |
getBigInteger(int col)
Convenience method to read a BigInteger.
|
byte[] |
getBinary(int col)
Convenience method to read a binary (byte[]).
|
Blob |
getBlob(int col)
Convenience method to read a blob.
|
Boolean |
getBoolean(int col)
Convenience method to read a boolean.
|
Byte |
getByte(int col)
Convenience method to read a byte.
|
Calendar |
getCalendar(int col)
Convenience method to read a Calendar.
|
Character |
getCharacter(int col)
Convenience method to read a char.
|
Clob |
getClob(int col)
Convenience method to read a clob.
|
Date |
getDate(int col)
Convenience method to read a Date.
|
Double |
getDouble(int col)
Convenience method to read a double.
|
Float |
getFloat(int col)
Convenience method to read a float.
|
Integer |
getInteger(int col)
Convenience method to read an integer.
|
Locale |
getLocale(int col)
Convenience method to read a Locale.
|
Long |
getLong(int col)
Convenience method to read a long.
|
int |
getNumberOfTypes() |
int |
getRowNumber()
Get the current position in the results.
|
Short |
getShort(int col)
Convenience method to read a short.
|
String |
getString(int col)
Convenience method to read a string.
|
String |
getText(int col)
Convenience method to read a String using streaming.
|
TimeZone |
getTimeZone(int col)
Convenience method to read a TimeZone.
|
Type |
getType(int i)
Get the type of the ith column of results.
|
boolean |
isClosed() |
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.
|
public static final ScrollableResultsImplementor INSTANCE
public boolean isClosed()
isClosed in interface ScrollableResultsImplementorpublic int getNumberOfTypes()
getNumberOfTypes in interface ScrollableResultsImplementorpublic void close()
ScrollableResultsclose in interface Closeableclose in interface AutoCloseableclose in interface ScrollableResultspublic boolean next()
ScrollableResultsnext in interface ScrollableResultstrue if there is another resultpublic boolean previous()
ScrollableResultsprevious in interface ScrollableResultstrue if there is a previous resultpublic boolean scroll(int positions)
ScrollableResultsscroll in interface ScrollableResultspositions - 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 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.public Object[] get()
ScrollableResultsget in interface ScrollableResultspublic Object get(int i)
ScrollableResultsget in interface ScrollableResultsi - the column, numbered from zeronullpublic Type getType(int i)
ScrollableResultsgetType in interface ScrollableResultsi - the column, numbered from zeropublic Integer getInteger(int col)
ScrollableResultsgetInteger in interface ScrollableResultscol - The column, numbered from zeropublic Long getLong(int col)
ScrollableResultsgetLong in interface ScrollableResultscol - The column, numbered from zeropublic Float getFloat(int col)
ScrollableResultsgetFloat in interface ScrollableResultscol - The column, numbered from zeropublic Boolean getBoolean(int col)
ScrollableResultsgetBoolean in interface ScrollableResultscol - The column, numbered from zeropublic Double getDouble(int col)
ScrollableResultsgetDouble in interface ScrollableResultscol - The column, numbered from zeropublic Short getShort(int col)
ScrollableResultsgetShort in interface ScrollableResultscol - The column, numbered from zeropublic Byte getByte(int col)
ScrollableResultsgetByte in interface ScrollableResultscol - The column, numbered from zeropublic Character getCharacter(int col)
ScrollableResultsgetCharacter in interface ScrollableResultscol - The column, numbered from zeropublic byte[] getBinary(int col)
ScrollableResultsgetBinary in interface ScrollableResultscol - The column, numbered from zeropublic String getText(int col)
ScrollableResultsgetText in interface ScrollableResultscol - The column, numbered from zeropublic Blob getBlob(int col)
ScrollableResultsgetBlob in interface ScrollableResultscol - The column, numbered from zeropublic Clob getClob(int col)
ScrollableResultsgetClob in interface ScrollableResultscol - The column, numbered from zeropublic String getString(int col)
ScrollableResultsgetString in interface ScrollableResultscol - The column, numbered from zeropublic BigDecimal getBigDecimal(int col)
ScrollableResultsgetBigDecimal in interface ScrollableResultscol - The column, numbered from zeropublic BigInteger getBigInteger(int col)
ScrollableResultsgetBigInteger in interface ScrollableResultscol - The column, numbered from zeropublic Date getDate(int col)
ScrollableResultsgetDate in interface ScrollableResultscol - The column, numbered from zeropublic Locale getLocale(int col)
ScrollableResultsgetLocale in interface ScrollableResultscol - The column, numbered from zeropublic Calendar getCalendar(int col)
ScrollableResultsgetCalendar in interface ScrollableResultscol - The column, numbered from zeropublic TimeZone getTimeZone(int col)
ScrollableResultsgetTimeZone in interface ScrollableResultscol - The column, numbered from zeroCopyright © 2019 JBoss by Red Hat. All rights reserved.