ResultRow.FunctionSpec, ResultRow.op| Constructor and Description |
|---|
AndroidResultRow(android.database.Cursor cursor) |
| 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. |
public int getPosition()
getPosition in interface ResultRowResultRow.getPosition()public int getColumnIndex(String columnName)
ResultRowgetColumnIndex in interface ResultRowcolumnName - the name of the target column.ResultRow.getColumnIndex(java.lang.String)public String getColumnName(int columnIndex)
ResultRowgetColumnName in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getColumnName(int)public String[] getColumnNames()
ResultRowgetColumnNames in interface ResultRowResultRow.getColumnNames()public int getColumnCount()
ResultRowgetColumnCount in interface ResultRowResultRow.getColumnCount()public byte[] getBlob(int columnIndex)
ResultRowThe 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.
getBlob in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getBlob(int)public String getString(int columnIndex)
ResultRowThe 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.
getString in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getString(int)public void copyStringToBuffer(int columnIndex,
StringBuffer buffer)
copyStringToBuffer in interface ResultRowcolumnIndex - the zero-based index of the target column.
if the target column is null, return bufferbuffer - the buffer to copy the text into.ResultRow.copyStringToBuffer(int, java.lang.StringBuffer)public short getShort(int columnIndex)
ResultRowgetShort in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getShort(int)public int getInt(int columnIndex)
ResultRowgetInt in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getInt(int)public long getLong(int columnIndex)
ResultRowgetLong in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getLong(int)public float getFloat(int columnIndex)
ResultRowgetFloat in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getFloat(int)public double getDouble(int columnIndex)
ResultRowgetDouble in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.getDouble(int)public boolean isNull(int columnIndex)
ResultRowtrue if the value in the indicated column is null.
Returns true if the last object returned with the column index is null.isNull in interface ResultRowcolumnIndex - the zero-based index of the target column.ResultRow.isNull(int)This documentation is licensed by Andrew Bowley under the GPLv3 License.