VehicleDAO
interface VehicleDAO
Database access object responsible for interaction with vehicles table of the vehicle manager database. Actual DAO instance is generated by Room library.
Functions
Link copied to clipboard
Queries for all vehicles saved in the database
Link copied to clipboard
Queries for all vehicles saved in the database
Link copied to clipboard
Queries for a vehicle with given ID
Link copied to clipboard
Queries for a vehicle with given ID
Link copied to clipboard
Inserts new vehicles to the database. If vehicle with given ID already exists, the item will not be updated. See insertOrUpdate.
Link copied to clipboard
Inserts or updates vehicles to the database. In case the vehicle with given ID is already present in the database, it's data will be updated.