floor_annotation library

Classes

ColumnInfo
Allows customization of the column associated with this field.
Database
Marks a class as a FloorDatabase.
DatabaseView
Marks a class as a database view (a fixed select statement).
Entity
Marks a class as a database entity (table).
ForeignKey
Declares a foreign key on another Entity.
ForeignKeyAction
Constants definition for values that can be used in ForeignKey.onDelete and ForeignKey.onUpdate
Index
Declares an index on an Entity. see: SQLite Index Documentation
Insert
Marks a method as an insert method.
PrimaryKey
Marks a field in an Entity as the primary key.
Query
Marks a method as a query method.
TypeConverter<T, S>
Base class for type converters which can be applied to: [...]
TypeConverters
Specifies additional type converters that Floor can use. The TypeConverter is added to the scope of the element so if you put it on a class, all methods/fields in that class will be able to use the converter. [...]
Update
Marks a method as an update method.

Constants

dao → const _Dao
Marks the class as a Data Access Object. [...]
const _Dao()
delete → const _Delete
Marks a method as a deletion method.
const _Delete()
entity → const Entity
Marks a class as a database entity (table).
const Entity()
ignore → const _Ignore
Ignores the marked element from Floor's processing logic. It can only be applied to entity's fields.
const _Ignore()
insert → const Insert
Marks a method as an insert method. [...]
const Insert()
primaryKey → const PrimaryKey
Marks a field in an Entity as the primary key. [...]
const PrimaryKey()
transaction → const _Transaction
Marks a method as a transaction method.
const _Transaction()
update → const Update
Marks a method as an update method. [...]
const Update()

Enums

OnConflictStrategy
Set of conflict handling strategies for insert and update methods. [...]