androidx.room

Classes

CoroutinesRoom

A helper class for supporting Kotlin Coroutines in Room.

DatabaseConfiguration

Configuration class for a RoomDatabase.

FtsOptions

Available option values that can be used with Fts3 & Fts4.

InvalidationTracker

InvalidationTracker keeps a list of tables modified by queries and notifies its callbacks about these tables.

Room

Utility class for Room.

RoomDatabase

Base class for all Room databases.

RoomWarnings

The list of warnings that are produced by Room.

RxRoom

Helper class to add RxJava2 support to Room.

Exceptions

EmptyResultSetException

Thrown by Room when the query needs to return a result (e.g. in a Single<T> query) but the returned result set from the database is empty.

Annotations

ColumnInfo

Allows specific customization about the column associated with this field.

Dao

Marks the class as a Data Access Object.

Database

Marks a class as a RoomDatabase.

DatabaseView

Marks a class as an SQLite view.

Delete

Marks a method in a Dao annotated class as a delete method.

Embedded

Can be used as an annotation on a field of an Entity or Pojo to signal that nested fields (i.e. fields of the annotated field's class) can be referenced directly in the SQL queries.

Entity

Marks a class as an entity.

ForeignKey

Declares a foreign key on another Entity.

Fts3

Marks an Entity annotated class as a FTS3 entity.

Fts4

Marks an Entity annotated class as a FTS4 entity.

Ignore

Ignores the marked element from Room's processing logic.

Index

Declares an index on an Entity.

Insert

Marks a method in a Dao annotated class as an insert method.

OnConflictStrategy

Set of conflict handling strategies for various Dao methods.

PrimaryKey

Marks a field in an Entity as the primary key.

Query

Marks a method in a Dao annotated class as a query method.

RawQuery

Marks a method in a Dao annotated class as a raw query method where you can pass the query as a SupportSQLiteQuery.

Relation

A convenience annotation which can be used in a Pojo to automatically fetch relation entities.

SkipQueryVerification

Skips database verification for the annotated element.

Transaction

Marks a method in a Dao class as a transaction method.

TypeConverter

Marks a method as a type converter.

TypeConverters

Specifies additional type converters that Room can use.

Update

Marks a method in a Dao annotated class as an update method.