Added a case in the SaveNoteInteractor to handle the saving of notes that already exist. Note existence is checked using editNoteDAO.existsByID(), passing in the ID of the note.
If the note already exists by ID, the editNoteDAO.updateNote() method is called instead of creating a new note.
If the note doesn't exist, the process proceeds to create a new note by calling editNoteDAO.save().
Left the implementation of existsByID() and updateNote() as TODOs in EditNoteDataAccessObject for teammates working on that side of the project to implement.
SaveNoteInteractor
to handle the saving of notes that already exist. Note existence is checked usingeditNoteDAO.existsByID()
, passing in the ID of the note.editNoteDAO.updateNote()
method is called instead of creating a new note.editNoteDAO.save()
.existsByID()
andupdateNote()
as TODOs inEditNoteDataAccessObject
for teammates working on that side of the project to implement.