public class CachedSelectResult extends SelectQueryResult
Modifier and Type | Field and Description |
---|---|
protected short |
warningCount |
Constructor and Description |
---|
CachedSelectResult(MySQLColumnInformation[] ci,
List<ValueObject[]> result,
short warningCount) |
Modifier and Type | Method and Description |
---|---|
static CachedSelectResult |
createCachedSelectResult(StreamingSelectResult streamingResult) |
MySQLColumnInformation[] |
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. i starts at zero!
|
short |
getWarnings() |
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
void |
moveRowPointerTo(int i)
moves the row pointer to position i
|
boolean |
next() |
close, isClosed
public CachedSelectResult(MySQLColumnInformation[] ci, List<ValueObject[]> result, short warningCount)
public static CachedSelectResult createCachedSelectResult(StreamingSelectResult streamingResult) throws IOException, QueryException
IOException
QueryException
public boolean next() throws IOException, QueryException
next
in class SelectQueryResult
IOException
QueryException
public short getWarnings()
getWarnings
in class SelectQueryResult
public String getMessage()
getMessage
in class SelectQueryResult
public MySQLColumnInformation[] getColumnInformation()
getColumnInformation
in class SelectQueryResult
public ValueObject getValueObject(int i) throws NoSuchColumnException
getValueObject
in class SelectQueryResult
i
- index, starts at 0NoSuchColumnException
- if the column does not existpublic int getRows()
getRows
in class QueryResult
public void moveRowPointerTo(int i)
SelectQueryResult
moveRowPointerTo
in class SelectQueryResult
i
- pointer to movepublic int getRowPointer()
SelectQueryResult
getRowPointer
in class SelectQueryResult
public ResultSetType getResultSetType()
getResultSetType
in class SelectQueryResult
public boolean isBeforeFirst()
isBeforeFirst
in class SelectQueryResult
public boolean isAfterLast()
isAfterLast
in class SelectQueryResult
Copyright © 2015. All rights reserved.