public interface ResultRow
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResultRow.FunctionSpec
FunctionSpec
Indicates type of operation and related parameters
|
static class |
ResultRow.op
op
Enumeration of operation to perform on query result row
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyStringToBuffer(int columnIndex,
StringBuffer buffer)
Retrieves the requested column text and stores it in the buffer provided.
|
byte[] |
getBlob(int columnIndex)
Returns the value of the requested column as a byte array.
|
int |
getColumnCount()
Return total number of columns
|
int |
getColumnIndex(String columnName)
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
|
String |
getColumnName(int columnIndex)
Returns the column name at the given zero-based column index.
|
String[] |
getColumnNames()
Returns a string array holding the names of all of the columns in the
result set in the order in which they were listed in the result.
|
double |
getDouble(int columnIndex)
Returns the value of the requested column as a double.
|
float |
getFloat(int columnIndex)
Returns the value of the requested column as a float.
|
int |
getInt(int columnIndex)
Returns the value of the requested column as an int.
|
long |
getLong(int columnIndex)
Returns the value of the requested column as a long.
|
int |
getPosition()
Returns the current position of the cursor in the row set.
|
short |
getShort(int columnIndex)
Returns the value of the requested column as a short.
|
String |
getString(int columnIndex)
Returns the value of the requested column as a String.
|
boolean |
isNull(int columnIndex)
(Android SQLite only) Returns
true if the value in the indicated column is null. |
int getPosition()
int getColumnIndex(String columnName)
columnName - the name of the target column.String getColumnName(int columnIndex)
columnIndex - the zero-based index of the target column.String[] getColumnNames()
int getColumnCount()
byte[] getBlob(int columnIndex)
The result and whether this method throws an exception when the column value is null or the column type is not a blob type is implementation-defined.
columnIndex - the zero-based index of the target column.String getString(int columnIndex)
The result and whether this method throws an exception when the column value is null or the column type is not a string type is implementation-defined.
columnIndex - the zero-based index of the target column.void copyStringToBuffer(int columnIndex,
StringBuffer buffer)
columnIndex - the zero-based index of the target column.
if the target column is null, return bufferbuffer - the buffer to copy the text into.short getShort(int columnIndex)
columnIndex - the zero-based index of the target column.int getInt(int columnIndex)
columnIndex - the zero-based index of the target column.long getLong(int columnIndex)
columnIndex - the zero-based index of the target column.float getFloat(int columnIndex)
columnIndex - the zero-based index of the target column.double getDouble(int columnIndex)
columnIndex - the zero-based index of the target column.boolean isNull(int columnIndex)
true if the value in the indicated column is null.
Returns true if the last object returned with the column index is null.columnIndex - the zero-based index of the target column.This documentation is licensed by Andrew Bowley under the GPLv3 License.