aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/example/wiimmterfaceandroid/database
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/database')
-rw-r--r--app/src/main/java/com/example/wiimmterfaceandroid/database/AppDatabase.java11
-rw-r--r--app/src/main/java/com/example/wiimmterfaceandroid/database/FriendCodeDao.java30
2 files changed, 0 insertions, 41 deletions
diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/database/AppDatabase.java b/app/src/main/java/com/example/wiimmterfaceandroid/database/AppDatabase.java
deleted file mode 100644
index 0f01149..0000000
--- a/app/src/main/java/com/example/wiimmterfaceandroid/database/AppDatabase.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.example.wiimmterfaceandroid.database;
-
-import androidx.room.Database;
-import androidx.room.RoomDatabase;
-
-import com.example.wiimmterfaceandroid.model.FriendCode;
-
-@Database(entities = {FriendCode.class}, version=1)
-public abstract class AppDatabase extends RoomDatabase {
- public abstract FriendCodeDao getFriendCodeDao();
-}
diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/database/FriendCodeDao.java b/app/src/main/java/com/example/wiimmterfaceandroid/database/FriendCodeDao.java
deleted file mode 100644
index dbfb9c5..0000000
--- a/app/src/main/java/com/example/wiimmterfaceandroid/database/FriendCodeDao.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.example.wiimmterfaceandroid.database;
-
-import androidx.room.Dao;
-import androidx.room.Delete;
-import androidx.room.Insert;
-import androidx.room.Query;
-import androidx.room.Update;
-
-import com.example.wiimmterfaceandroid.model.FriendCode;
-
-import java.util.List;
-
-@Dao
-public interface FriendCodeDao {
-
- @Query("SELECT * FROM friendcode")
- public List<FriendCode> getAll();
-
-// @Query("SELECT * FROM friendcodeobj")
-// public FriendCodeObj findByCode(String friendCode);
-
- @Insert
- public void insert(FriendCode friendCode);
-
- @Update
- public void update(FriendCode friendCode);
-
- @Delete
- public void delete(FriendCode friendCode);
-}