public class QueryResultRowSet extends AbstractRowSet implements Iterable
mappings, rows
Modifier and Type | Method and Description |
---|---|
MonetDBRow[] |
getAllRows()
Gets all rows of this set.
|
<T> T[] |
getColumnByIndex(int column)
Gets a column in this set as a Java class using the default mapping.
|
<T> T[] |
getColumnByIndex(int column,
Class<T> javaClass)
Gets a column in this set as a Java class.
|
<T> T[] |
getColumnByName(String columnName)
Gets a column in this set as a Java class using the default mapping.
|
<T> T[] |
getColumnByName(String columnName,
Class<T> javaClass)
Gets a column in this set as a Java class.
|
int |
getColumnIndexByName(String columnName)
Gets a column index in the result set by name.
|
int |
getNumberOfRows()
Gets the number of rows in this set.
|
MonetDBRow |
getSingleRow(int row)
Gets a single row in this set.
|
<T> T |
getSingleValueByIndex(int row,
int column)
Gets a single value in this set as a Java class using the default mapping.
|
<T> T |
getSingleValueByIndex(int row,
int column,
Class<T> javaClass)
Gets a single value in this set as a Java class.
|
<T> T |
getSingleValueByName(int row,
String columnName)
Gets a single value in this set as a Java class using the default mapping.
|
<T> T |
getSingleValueByName(int row,
String columnName,
Class<T> javaClass)
Gets a single value in this set as a Java class.
|
ListIterator<MonetDBRow> |
iterator() |
getNumberOfColumns, getQueryResultTable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MonetDBRow[] getAllRows()
public int getNumberOfRows()
public MonetDBRow getSingleRow(int row)
row
- The index of the row to retrieve starting from 1public int getColumnIndexByName(String columnName)
AbstractRowSet
getColumnIndexByName
in class AbstractRowSet
columnName
- The column namepublic <T> T getSingleValueByIndex(int row, int column, Class<T> javaClass)
T
- A Java class mapped to a MonetDB data typerow
- The index of the row to retrievecolumn
- The index of the column to retrievejavaClass
- The Java class to mappublic <T> T getSingleValueByIndex(int row, int column)
T
- A Java class mapped to a MonetDB data typerow
- The index of the row to retrievecolumn
- The index of the column to retrievepublic <T> T getSingleValueByName(int row, String columnName, Class<T> javaClass)
T
- A Java class mapped to a MonetDB data typerow
- The index of the row to retrievecolumnName
- The name of the column to retrievejavaClass
- The Java class to mappublic <T> T getSingleValueByName(int row, String columnName)
T
- A Java class mapped to a MonetDB data typerow
- The index of the row to retrievecolumnName
- The name of the column to retrievepublic <T> T[] getColumnByIndex(int column, Class<T> javaClass)
T
- A Java class mapped to a MonetDB data typecolumn
- The index of the column to retrievejavaClass
- The Java classpublic <T> T[] getColumnByIndex(int column)
T
- A Java class mapped to a MonetDB data typecolumn
- The index of the column to retrievepublic <T> T[] getColumnByName(String columnName, Class<T> javaClass)
T
- A Java class mapped to a MonetDB data typecolumnName
- The name of the column to retrievejavaClass
- The Java classpublic <T> T[] getColumnByName(String columnName)
T
- A Java class mapped to a MonetDB data typecolumnName
- The name of the column to retrievepublic ListIterator<MonetDBRow> iterator()
Copyright © 2018. All rights reserved.