ManufacturerDAO

interface ManufacturerDAO

Database access object responsible for interaction with manufacturers of the vehicle manager database. Actual DAO instance is generated by Room library.

Functions

Link copied to clipboard
abstract fun clear(vararg manufacturers: DManufacturer)

Removes all the data for selected manufacturers from the database

Link copied to clipboard
abstract fun clearAll()

Removes manufacturers data from the database

Link copied to clipboard

Queries for all manufacturers saved in the database

Link copied to clipboard

Queries for all manufacturers saved in the database

Link copied to clipboard

Queries for a manufacturer with given ID

Link copied to clipboard

Queries for a manufacturer with given ID

Link copied to clipboard
abstract fun insert(vararg manufacturers: DManufacturer)

Inserts new manufacturers to the database. If manufacturer with given ID already exists, the item will not be updated. See insertOrUpdate.

Link copied to clipboard
abstract fun insertOrUpdate(vararg manufacturers: DManufacturer)

Inserts or updates manufacturers in the database. In case the manufacturer with given ID is already present in the database, it's data will be updated.

Link copied to clipboard
abstract fun update(vararg manufacturers: DManufacturer)

Updates existing manufacturers (with same ID parameter).