JSmevog1 / GhettoYelp

0 stars 0 forks source link

Database #1

Open Yui-da-carp opened 3 days ago

Yui-da-carp commented 3 days ago

Database is an abstract class (extend from RoomDatabase) handles the communication between DAOs and Repository It is necessary to have sub-threads in repository instead of main thread. It prevents application to freeze when read and write data. Only one Database for one application

LAST UPDATE: Nov 30th, 2024

Variables: String DATABASE_NAME String USER_TABLE String RESTAURANT_NAME Database INSTANCE int THREADS_COUNT ExecutorService databaseExecutor

Methods: Database getDatabase(Context context) RoomDatabase.Callback defaultValues UserDAO getUserDAO( ); RestaurantDAO getRestaurantDAO( )

Yui-da-carp commented 2 days ago

MainDatabase.java is created and setup

Yui-da-carp commented 20 hours ago

Database branch is checked and merged into Main No Conflict