package net.ktnx.mobileledger.dao;
import androidx.room.Dao;
+import androidx.room.Delete;
+import androidx.room.Insert;
+import androidx.room.Query;
+import androidx.room.Update;
import net.ktnx.mobileledger.db.Profile;
@Dao
-abstract class ProfileDAO extends BaseDAO<Profile> {
- @Override
+public abstract class ProfileDAO extends BaseDAO<Profile> {
+ @Insert
abstract long insertSync(Profile item);
- @Override
+ @Update
abstract void updateSync(Profile item);
- @Override
- abstract void deleteSync(Profile item);
+ @Delete
+ public abstract void deleteSync(Profile item);
+
+ @Query("select * from profiles where id = :profileId")
+ public abstract Profile getByIdSync(long profileId);
}