public class ResultSet
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Value |
getColumn(int index)
Gets the value for the given column.
|
void |
getColumn(int index,
Value value)
Gets the value for the given column.
|
DataType |
getColumnDataType(int index)
Gets the datatype for the given column.
|
int |
getColumnIndex(java.lang.String name)
Gets the column index for the given column name.
|
java.lang.String |
getColumnName(int index)
Gets the name for the given column.
|
java.lang.String |
getJSON(int rows)
Returns rows in JSON format.
|
int |
getNumColumns()
Gets the number of columns.
|
boolean |
next()
Fetches the next row.
|
void |
rewind()
Positions the cursor before the first row.
|
public void rewind()
public DataType getColumnDataType(int index)
index
- [in] Column index.public Value getColumn(int index)
QueryExceptionIf a database access error occurs.
index
- [in] Column index.public int getNumColumns()
Columns are in the range [0...COLUMNS).
public java.lang.String getColumnName(int index)
index
- [in] Column index.public boolean next()
A ResultSet cursor is initially positioned before the first row; the first call to the method "Next" makes the first row the current row; the second call makes the second row the current row, and so on.
QueryExceptionIf a database access error occurs.
public java.lang.String getJSON(int rows)
Rows are returned from the current position.
JSON representation of the next <rows> rows in the resultset
rows
- [in] Maximum number of rowspublic void getColumn(int index, Value value)
QueryExceptionIf a database access error occurs.
index
- [in] Column index.value
- [in|out] Value.public int getColumnIndex(java.lang.String name)
name
- [in] Column name.