Database: Main access point for the underlying connection to your app’s persistent relational data. Usually annotated with @Database. An abstract class that extends RoomDatabase. It contains an abstract class that has no arguments which returns class annotated with @Dao. It contains a list of entities.
Entity: Represents tables in the database.
Dao: It contains methods used to access the database.
Step we have followed in this tutorial to Insert Update and Delete Items in room database.
Creating a menu item (delete and update)
Adding image view which when clicked inflate the menu item
Adding a click listener to delete and update
Including @delete and @update in @Dao methods.
Updating the repository and view model with delete and update method.
Performing delete and update when a menu item is clicked.
For any additional question or personal assistance kindly comment below and i will get back to you.