diff options
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/Account/AccountRoomDatabase.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app/src/main/java/Account/AccountRoomDatabase.java b/app/src/main/java/Account/AccountRoomDatabase.java deleted file mode 100644 index 2f5d0120..00000000 --- a/app/src/main/java/Account/AccountRoomDatabase.java +++ /dev/null @@ -1,27 +0,0 @@ -package Account; - -import android.content.Context; - -import androidx.room.Database; -import androidx.room.Room; -import androidx.room.RoomDatabase; - -@Database(entities = {Account.class}, version = 1) -public abstract class AccountRoomDatabase extends RoomDatabase { - private static AccountRoomDatabase INSTANCE; - - public abstract AccountDao accountDao(); - - public static AccountRoomDatabase getDatabase(final Context context) { - if(INSTANCE == null) { - synchronized (AccountRoomDatabase.class) { - if(INSTANCE == null) { - INSTANCE = Room.databaseBuilder(context.getApplicationContext(), - AccountRoomDatabase.class, "accounts") - .build(); - } - } - } - return INSTANCE; - } -} |