Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vaibhavmojidra/android-java---demo-room-db
The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
https://github.com/vaibhavmojidra/android-java---demo-room-db
android-java androidarchitecturecomponets mojidra room-database room-persistence-library vaibhav vaibhav-mojidra vaibhavmojidra
Last synced: 12 days ago
JSON representation
The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
- Host: GitHub
- URL: https://github.com/vaibhavmojidra/android-java---demo-room-db
- Owner: VaibhavMojidra
- Created: 2021-07-05T14:34:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-05T14:39:32.000Z (over 3 years ago)
- Last Synced: 2024-11-06T01:49:37.219Z (2 months ago)
- Topics: android-java, androidarchitecturecomponets, mojidra, room-database, room-persistence-library, vaibhav, vaibhav-mojidra, vaibhavmojidra
- Language: Java
- Homepage: https://vaibhavmojidra.github.io/site/
- Size: 322 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android-Java---Demo-Room-DB
- Add all dependencies required for Room DB
- Make a POJO Class i.e object/entity class for the data.( Eg: Student)
- Annotate that class as @Entity Annotation
- Also make any primary key if required @PrimaryKey
- Make a Dao interface to declare all the CRUD methods for entity ( Eg: StudentDAO -> insertStudentRecord(Student obj) )
- Make a Database Abstract Class for database connection (Eg: StudentDatabase)
- Make Repository Class
- Make ViewModel Class![1](https://github.com/VaibhavMojidra/Android-Java---Demo-Room-DB/blob/master/screenshots/1.png)
![2](https://github.com/VaibhavMojidra/Android-Java---Demo-Room-DB/blob/master/screenshots/2.png)
![3](https://github.com/VaibhavMojidra/Android-Java---Demo-Room-DB/blob/master/screenshots/3.png)
![4](https://github.com/VaibhavMojidra/Android-Java---Demo-Room-DB/blob/master/screenshots/4.png)
![5](https://github.com/VaibhavMojidra/Android-Java---Demo-Room-DB/blob/master/screenshots/5.png)