androidx.core.database
Classes
CursorWindowCompat |
Helper for accessing features in |
DatabaseUtilsCompat |
This class is deprecated. Use |
Extension functions summary
inline ByteArray? |
Cursor.getBlobOrNull(index: Int) Returns the value of the requested column as a nullable byte array. |
inline Double? |
Cursor.getDoubleOrNull(index: Int) Returns the value of the requested column as a nullable double. |
inline Float? |
Cursor.getFloatOrNull(index: Int) Returns the value of the requested column as a nullable float. |
inline Int? |
Cursor.getIntOrNull(index: Int) Returns the value of the requested column as a nullable integer. |
inline Long? |
Cursor.getLongOrNull(index: Int) Returns the value of the requested column as a nullable long. |
inline Short? |
Cursor.getShortOrNull(index: Int) Returns the value of the requested column as a nullable short. |
inline String? |
Cursor.getStringOrNull(index: Int) Returns the value of the requested column as a nullable string. |
Extension functions
getBlobOrNull
inline fun Cursor.getBlobOrNull(index: Int): ByteArray?
Returns the value of the requested column as a nullable byte array.
The result and whether this method throws an exception when the column type is not a blob type is implementation-defined.
getDoubleOrNull
inline fun Cursor.getDoubleOrNull(index: Int): Double?
Returns the value of the requested column as a nullable double.
The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.
getFloatOrNull
inline fun Cursor.getFloatOrNull(index: Int): Float?
Returns the value of the requested column as a nullable float.
The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.
getIntOrNull
inline fun Cursor.getIntOrNull(index: Int): Int?
Returns the value of the requested column as a nullable integer.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
getLongOrNull
inline fun Cursor.getLongOrNull(index: Int): Long?
Returns the value of the requested column as a nullable long.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
getShortOrNull
inline fun Cursor.getShortOrNull(index: Int): Short?
Returns the value of the requested column as a nullable short.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
getStringOrNull
inline fun Cursor.getStringOrNull(index: Int): String?
Returns the value of the requested column as a nullable string.
The result and whether this method throws an exception when the column type is not a string type is implementation-defined.