public final class DrizzleQueryResult extends Object implements SelectQueryResult
| Constructor and Description |
|---|
DrizzleQueryResult(List<ColumnInformation> columnInformation,
List<List<ValueObject>> valueObjects,
short warningCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getColumnId(String columnLabel)
get the id of the column named columnLabel
|
List<ColumnInformation> |
getColumnInformation() |
String |
getMessage() |
ResultSetType |
getResultSetType() |
int |
getRowPointer()
gets the current row number
|
int |
getRows() |
ValueObject |
getValueObject(int i)
gets the value at position i in the result set.
|
ValueObject |
getValueObject(String column)
gets the value object in column named columnName
|
short |
getWarnings() |
void |
moveRowPointerTo(int i)
moves the row pointer to position i
|
boolean |
next()
move pointer forward
|
public DrizzleQueryResult(List<ColumnInformation> columnInformation, List<List<ValueObject>> valueObjects, short warningCount)
public boolean next()
SelectQueryResultnext in interface SelectQueryResultpublic void close()
close in interface QueryResultpublic short getWarnings()
getWarnings in interface QueryResultpublic String getMessage()
getMessage in interface QueryResultpublic List<ColumnInformation> getColumnInformation()
getColumnInformation in interface QueryResultpublic ValueObject getValueObject(int i) throws NoSuchColumnException
getValueObject in interface SelectQueryResulti - index, starts at 0NoSuchColumnException - if the column does not existpublic ValueObject getValueObject(String column) throws NoSuchColumnException
SelectQueryResultgetValueObject in interface SelectQueryResultcolumn - the name of the columnNoSuchColumnException - if the column does not existpublic int getRows()
getRows in interface QueryResultpublic int getColumnId(String columnLabel) throws NoSuchColumnException
SelectQueryResultgetColumnId in interface SelectQueryResultcolumnLabel - the label of the columnNoSuchColumnException - if the column does not existpublic void moveRowPointerTo(int i)
SelectQueryResultmoveRowPointerTo in interface SelectQueryResulti - the positionpublic int getRowPointer()
SelectQueryResultgetRowPointer in interface SelectQueryResultpublic ResultSetType getResultSetType()
getResultSetType in interface QueryResultCopyright © 2016. All rights reserved.