public class EmptyScrollableResults extends java.lang.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.
|
java.lang.Object[] |
get()
Get the current row of results.
|
java.lang.Object |
get(int i)
Get the ith object in the current row of results, without
initializing any other results in the row.
|
java.math.BigDecimal |
getBigDecimal(int col)
Convenience method to read a BigDecimal.
|
java.math.BigInteger |
getBigInteger(int col)
Convenience method to read a BigInteger.
|
byte[] |
getBinary(int col)
Convenience method to read a binary (byte[]).
|
java.sql.Blob |
getBlob(int col)
Convenience method to read a blob.
|
java.lang.Boolean |
getBoolean(int col)
Convenience method to read a boolean.
|
java.lang.Byte |
getByte(int col)
Convenience method to read a byte.
|
java.util.Calendar |
getCalendar(int col)
Convenience method to read a Calendar.
|
java.lang.Character |
getCharacter(int col)
Convenience method to read a char.
|
java.sql.Clob |
getClob(int col)
Convenience method to read a clob.
|
java.util.Date |
getDate(int col)
Convenience method to read a Date.
|
java.lang.Double |
getDouble(int col)
Convenience method to read a double.
|
java.lang.Float |
getFloat(int col)
Convenience method to read a float.
|
java.lang.Integer |
getInteger(int col)
Convenience method to read an integer.
|
java.util.Locale |
getLocale(int col)
Convenience method to read a Locale.
|
java.lang.Long |
getLong(int col)
Convenience method to read a long.
|
int |
getNumberOfTypes() |
int |
getRowNumber()
Get the current position in the results.
|
java.lang.Short |
getShort(int col)
Convenience method to read a short.
|
java.lang.String |
getString(int col)
Convenience method to read a string.
|
java.lang.String |
getText(int col)
Convenience method to read a String using streaming.
|
java.util.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 java.lang.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 java.lang.Object[] get()
ScrollableResultsget in interface ScrollableResultspublic java.lang.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 java.lang.Integer getInteger(int col)
ScrollableResultsgetInteger in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Long getLong(int col)
ScrollableResultsgetLong in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Float getFloat(int col)
ScrollableResultsgetFloat in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Boolean getBoolean(int col)
ScrollableResultsgetBoolean in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Double getDouble(int col)
ScrollableResultsgetDouble in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Short getShort(int col)
ScrollableResultsgetShort in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.Byte getByte(int col)
ScrollableResultsgetByte in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.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 java.lang.String getText(int col)
ScrollableResultsgetText in interface ScrollableResultscol - The column, numbered from zeropublic java.sql.Blob getBlob(int col)
ScrollableResultsgetBlob in interface ScrollableResultscol - The column, numbered from zeropublic java.sql.Clob getClob(int col)
ScrollableResultsgetClob in interface ScrollableResultscol - The column, numbered from zeropublic java.lang.String getString(int col)
ScrollableResultsgetString in interface ScrollableResultscol - The column, numbered from zeropublic java.math.BigDecimal getBigDecimal(int col)
ScrollableResultsgetBigDecimal in interface ScrollableResultscol - The column, numbered from zeropublic java.math.BigInteger getBigInteger(int col)
ScrollableResultsgetBigInteger in interface ScrollableResultscol - The column, numbered from zeropublic java.util.Date getDate(int col)
ScrollableResultsgetDate in interface ScrollableResultscol - The column, numbered from zeropublic java.util.Locale getLocale(int col)
ScrollableResultsgetLocale in interface ScrollableResultscol - The column, numbered from zeropublic java.util.Calendar getCalendar(int col)
ScrollableResultsgetCalendar in interface ScrollableResultscol - The column, numbered from zeropublic java.util.TimeZone getTimeZone(int col)
ScrollableResultsgetTimeZone in interface ScrollableResultscol - The column, numbered from zeroCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.