Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
package com.cesams.twogetskills.inconcert.dao;import androidx.room.Dao;import androidx.room.Insert;import androidx.room.Query;import androidx.room.Update;import com.cesams.twogetskills.inconcert.entity.NotificationCenter;import com.cesams.twogetskills.inconcert.room.ResultCount;import java.util.List;@Daopublic interface NotificationCenterDao {@Query("SELECT COUNT(*) AS count FROM tb_notification")ResultCount getCountNotification();@Query("SELECT * FROM tb_notification")List<NotificationCenter> selectAllNotification();@Query("SELECT * FROM tb_notification WHERE id = :id LIMIT 1")NotificationCenter selectNotificationByUuid(String id);@Insertvoid insert(NotificationCenter notificationCenter);@Updatevoid update(NotificationCenter notificationCenter);@Query("DELETE FROM tb_notification WHERE id = :id")void removeNotificationByUuid(String id);@Query("DELETE FROM tb_notification")void removeAllnotifications();}