public class RowSet
extends java.lang.Object
This object will be returned when making a Row based statement.
| Constructor and Description |
|---|
RowSet(java.lang.String[] columnNames,
java.util.List<java.lang.Object[]> rows)
Creates a new RowSet with the specified column names and data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(int column)
Retrieves the value for a column in the current row as a boolean.
|
byte |
getByte(int column)
Retrieves the value for a column in the current row as a byte.
|
char |
getChar(int column)
Retrieves the value for a column in the current row as a char.
|
java.lang.String[] |
getColumnNames()
Retrieves the column names in this result.
|
double |
getDouble(int column)
Retrieves the value for a column in the current row as a double.
|
float |
getFloat(int column)
Retrieves the value for a column in the current row as a float.
|
int |
getInt(int column)
Retrieves the value for a column in the current row as an int.
|
long |
getLong(int column)
Retrieves the value for a column in the current row as a long.
|
short |
getShort(int column)
Retrieves the value for a column in the current row as a short.
|
java.lang.String |
getString(int column)
Retrieves the value for a column in the current row as a String.
|
boolean |
hasNext()
Determines if there is another row in the result set.
|
java.lang.Object[] |
next()
Determines if there is another row in the result set.
|
public RowSet(java.lang.String[] columnNames,
java.util.List<java.lang.Object[]> rows)
columnNames - The names of each column in the order they appear in the row data.rows - The rows of data that correlate to the column names.public boolean hasNext()
public java.lang.Object[] next()
public java.lang.String[] getColumnNames()
public java.lang.String getString(int column)
column - The column number to retrieve the value from.public int getInt(int column)
column - The column number to retrieve the value from.public long getLong(int column)
column - The column number to retrieve the value from.public float getFloat(int column)
column - The column number to retrieve the value from.public double getDouble(int column)
column - The column number to retrieve the value from.public boolean getBoolean(int column)
column - The column number to retrieve the value from.public short getShort(int column)
column - The column number to retrieve the value from.public byte getByte(int column)
column - The column number to retrieve the value from.public char getChar(int column)
column - The column number to retrieve the value from.