#larntech #roomdatabase #viewmodel #mvvm #update #delete
Android Room Database Operations, Insert Update Delete || Android Studio Tutorial
For additional help/customization and tasks reach me via.
https://www.fiverr.com/share/ADdzzR
In this tutorial, we shall learn room database operations, Insert Update Delete, and Query.
This is part two of my previous tutorials on Room Database, ViewModel, LiveData, RecyclerView (MVVM) || Android Architecture Component
Be sure to check it here so that you can understand this one better.
• Room Database , ViewModel , LiveData, Recy...
Room Database being an architectural component that allows fluent database access in mobile applications.
Major Components in Room Database:
1. Database:
This is the 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.
2. Entity:
Represents tables in the database.
3. 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.
1. Creating a menu item (delete and update)
2. Adding image view which when clicked inflate the menu item
3. Adding a click listener to delete and update
4. Including @delete and @update in @Dao methods.
5. Updating the repository and view model with delete and update method.
6. Performing delete and update when a menu item is clicked.
Thanks for watching if you are not subscribed. Kindly subscribe for more tutorials.
Subscribe link: https://www.youtube.com/c/larntech20?...
For additional help, feel free to comment below.
On this page of the site you can watch the video online Android Room Database Operations, Insert Update Delete || Android Studio Tutorial with a duration of hours minute second in good quality, which was uploaded by the user larn tech 09 May 2020, share the link with friends and acquaintances, this video has already been watched 9,836 times on youtube and it was liked by 74 viewers. Enjoy your viewing!