EnergeticProfileDAO

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

Functions

Link copied to clipboard
abstract fun clear()

Removes the data of all energetic profiles

abstract fun clear(vararg energeticProfiles: DEnergeticProfile)

Removes all the data for selected energetic profiles from the database

abstract fun clear(vehicleModelId: String): Int

Removes the data of all energetic profiles that corresponds to passed vehicleModelId

Link copied to clipboard

Queries for all energetic profiles saved in the database

Link copied to clipboard

Queries for an energetic profile with given ID

Link copied to clipboard
abstract fun insert(vararg energeticProfiles: DEnergeticProfile)

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

Link copied to clipboard
abstract fun insertOrUpdate(vararg energeticProfiles: DEnergeticProfile)

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

Link copied to clipboard
abstract fun update(vararg energeticProfiles: DEnergeticProfile)

Updates existing profiles (with same ID parameter).