Stay organized with collections
Save and categorize content based on your preferences.
android.database
Interfaces
CrossProcessCursor |
A cross process cursor is an extension of a Cursor that also supports usage from remote processes.
|
Cursor |
This interface provides random read-write access to the result set returned by a database query.
|
DatabaseErrorHandler |
An interface to let apps define an action to take when database corruption is detected.
|
Classes
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.database\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/database/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CrossProcessCursor](/reference/kotlin/android/database/CrossProcessCursor) | A cross process cursor is an extension of a [Cursor](/reference/kotlin/android/database/Cursor) that also supports usage from remote processes. |\n| [Cursor](/reference/kotlin/android/database/Cursor) | This interface provides random read-write access to the result set returned by a database query. |\n| [DatabaseErrorHandler](/reference/kotlin/android/database/DatabaseErrorHandler) | An interface to let apps define an action to take when database corruption is detected. |\n\nClasses\n-------\n\n|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AbstractCursor](/reference/kotlin/android/database/AbstractCursor) | This is an abstract cursor class that handles a lot of the common code that all cursors need to deal with and is provided for convenience reasons. |\n| [AbstractWindowedCursor](/reference/kotlin/android/database/AbstractWindowedCursor) | A base class for Cursors that store their data in [CursorWindow](/reference/kotlin/android/database/CursorWindow)s. |\n| [CharArrayBuffer](/reference/kotlin/android/database/CharArrayBuffer) | This is used for [Cursor.copyStringToBuffer](/reference/kotlin/android/database/Cursor#copyStringToBuffer(kotlin.Int,%20android.database.CharArrayBuffer)) |\n| [ContentObservable](/reference/kotlin/android/database/ContentObservable) | A specialization of [Observable](/reference/kotlin/android/database/Observable) for [ContentObserver](/reference/kotlin/android/database/ContentObserver) that provides methods for sending notifications to a list of [ContentObserver](/reference/kotlin/android/database/ContentObserver) objects. |\n| [ContentObserver](/reference/kotlin/android/database/ContentObserver) | Receives call backs for changes to content. |\n| [CrossProcessCursorWrapper](/reference/kotlin/android/database/CrossProcessCursorWrapper) | Cursor wrapper that implements [CrossProcessCursor](/reference/kotlin/android/database/CrossProcessCursor). |\n| [CursorJoiner](/reference/kotlin/android/database/CursorJoiner) | Does a join on two cursors using the specified columns. |\n| [CursorWindow](/reference/kotlin/android/database/CursorWindow) | A buffer containing multiple cursor rows. |\n| [CursorWrapper](/reference/kotlin/android/database/CursorWrapper) | Wrapper class for Cursor that delegates all calls to the actual cursor object. |\n| [DatabaseUtils](/reference/kotlin/android/database/DatabaseUtils) | Static utility methods for dealing with databases and [Cursor](/reference/kotlin/android/database/Cursor)s. |\n| [DataSetObservable](/reference/kotlin/android/database/DataSetObservable) | A specialization of [Observable](/reference/kotlin/android/database/Observable) for [DataSetObserver](/reference/kotlin/android/database/DataSetObserver) that provides methods for sending notifications to a list of [DataSetObserver](/reference/kotlin/android/database/DataSetObserver) objects. |\n| [DataSetObserver](/reference/kotlin/android/database/DataSetObserver) | Receives call backs when a data set has been changed, or made invalid. |\n| [DefaultDatabaseErrorHandler](/reference/kotlin/android/database/DefaultDatabaseErrorHandler) | Default class used to define the action to take when database corruption is reported by sqlite. |\n| [MatrixCursor](/reference/kotlin/android/database/MatrixCursor) | A mutable cursor implementation backed by an array of `Object`s. |\n| [MergeCursor](/reference/kotlin/android/database/MergeCursor) | A convenience class that lets you present an array of Cursors as a single linear Cursor. |\n| [Observable](/reference/kotlin/android/database/Observable) | Provides methods for registering or unregistering arbitrary observers in an [ArrayList](../../java/util/ArrayList.html#). |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [CursorIndexOutOfBoundsException](/reference/kotlin/android/database/CursorIndexOutOfBoundsException) | An exception indicating that a cursor is out of bounds. |\n| [CursorWindowAllocationException](/reference/kotlin/android/database/CursorWindowAllocationException) | This exception is thrown when a CursorWindow couldn't be allocated, most probably due to memory not being available. |\n| [SQLException](/reference/kotlin/android/database/SQLException) | An exception that indicates there was an error with SQL parsing or execution. |\n| [StaleDataException](/reference/kotlin/android/database/StaleDataException) | This exception is thrown when a Cursor contains stale data and must be requeried before being used again. |"]]