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 ScrollableResultsImplementor
public int getNumberOfTypes()
getNumberOfTypes
in interface ScrollableResultsImplementor
public void close()
ScrollableResults
close
in interface java.lang.AutoCloseable
close
in interface ScrollableResults
public boolean next()
ScrollableResults
next
in interface ScrollableResults
true
if there is another resultpublic boolean previous()
ScrollableResults
previous
in interface ScrollableResults
true
if there is a previous resultpublic boolean scroll(int positions)
ScrollableResults
scroll
in interface ScrollableResults
positions
- a positive (forward) or negative (backward) number of rowstrue
if there is a result at the new locationpublic boolean last()
ScrollableResults
last
in interface ScrollableResults
true
if there are any resultspublic boolean first()
ScrollableResults
first
in interface ScrollableResults
true
if there are any resultspublic void beforeFirst()
ScrollableResults
beforeFirst
in interface ScrollableResults
public void afterLast()
ScrollableResults
afterLast
in interface ScrollableResults
public boolean isFirst()
ScrollableResults
isFirst
in interface ScrollableResults
true
if this is the first row of results, otherwise false
public boolean isLast()
ScrollableResults
isLast
in interface ScrollableResults
true
if this is the last row of results.public int getRowNumber()
ScrollableResults
getRowNumber
in interface ScrollableResults
public boolean setRowNumber(int rowNumber)
ScrollableResults
setRowNumber
in interface 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.public java.lang.Object[] get()
ScrollableResults
get
in interface ScrollableResults
public java.lang.Object get(int i)
ScrollableResults
get
in interface ScrollableResults
i
- the column, numbered from zeronull
public Type getType(int i)
ScrollableResults
getType
in interface ScrollableResults
i
- the column, numbered from zeropublic java.lang.Integer getInteger(int col)
ScrollableResults
getInteger
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Long getLong(int col)
ScrollableResults
getLong
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Float getFloat(int col)
ScrollableResults
getFloat
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Boolean getBoolean(int col)
ScrollableResults
getBoolean
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Double getDouble(int col)
ScrollableResults
getDouble
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Short getShort(int col)
ScrollableResults
getShort
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Byte getByte(int col)
ScrollableResults
getByte
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.Character getCharacter(int col)
ScrollableResults
getCharacter
in interface ScrollableResults
col
- The column, numbered from zeropublic byte[] getBinary(int col)
ScrollableResults
getBinary
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.String getText(int col)
ScrollableResults
getText
in interface ScrollableResults
col
- The column, numbered from zeropublic java.sql.Blob getBlob(int col)
ScrollableResults
getBlob
in interface ScrollableResults
col
- The column, numbered from zeropublic java.sql.Clob getClob(int col)
ScrollableResults
getClob
in interface ScrollableResults
col
- The column, numbered from zeropublic java.lang.String getString(int col)
ScrollableResults
getString
in interface ScrollableResults
col
- The column, numbered from zeropublic java.math.BigDecimal getBigDecimal(int col)
ScrollableResults
getBigDecimal
in interface ScrollableResults
col
- The column, numbered from zeropublic java.math.BigInteger getBigInteger(int col)
ScrollableResults
getBigInteger
in interface ScrollableResults
col
- The column, numbered from zeropublic java.util.Date getDate(int col)
ScrollableResults
getDate
in interface ScrollableResults
col
- The column, numbered from zeropublic java.util.Locale getLocale(int col)
ScrollableResults
getLocale
in interface ScrollableResults
col
- The column, numbered from zeropublic java.util.Calendar getCalendar(int col)
ScrollableResults
getCalendar
in interface ScrollableResults
col
- The column, numbered from zeropublic java.util.TimeZone getTimeZone(int col)
ScrollableResults
getTimeZone
in interface ScrollableResults
col
- The column, numbered from zeroCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.