EVProfileDAO

interface EVProfileDAO

Database access object responsible for interaction with energetic vehicles 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 vehicle profiles

abstract fun clear(vararg eVProfiles: DEVProfile)

Removes all the data for selected energetic vehicle profiles from the database

abstract fun clear(vehicleModelId: String): Int

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

Link copied to clipboard

Queries for all energetic vehicle profiles saved in the database

Link copied to clipboard

Queries for an energetic vehicle profile with given ID

Link copied to clipboard
abstract fun insert(vararg eVProfiles: DEVProfile)

Inserts new energetic vehicle 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 eVProfiles: DEVProfile)

Inserts or updates energetic vehicle 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 profiles: DEVProfile)

Updates existing energetic vehicle profiles (with same ID parameter).