Interface NoteDao
-
public interface NoteDao
This classes uses SQLite commands to access, fetch and insert/delete Note data from database- Since:
- 2022-03-01
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(Note note)
Delete note functionjava.util.List<Note>
getAllNote()
Query to return all notesvoid
insertNote(Note note)
Insert note functionvoid
updateNote(java.lang.String title, java.lang.String description, int id)
Query to update current notes in phone
-
-
-
Method Detail
-
getAllNote
java.util.List<Note> getAllNote()
Query to return all notes- Returns:
- List All Notes available in Note activity
-
updateNote
void updateNote(java.lang.String title, java.lang.String description, int id)
Query to update current notes in phone- Parameters:
title
- defines note titledescription
- defines note descriptionid
- defines note id
-
insertNote
void insertNote(Note note)
Insert note function- Parameters:
note
- Note
-
delete
void delete(Note note)
Delete note function- Parameters:
note
- Note
-
-