Replace FredrickProcessor dependence on NoteDao

This commit is contained in:
P0nk
2022-12-27 10:52:49 +01:00
parent 389b3ad2a4
commit af14da987e
8 changed files with 47 additions and 58 deletions

View File

@@ -57,7 +57,7 @@ public class NoteDao {
}
}
private static Optional<Note> findById(Handle handle, int id) {
private Optional<Note> findById(Handle handle, int id) {
final Optional<Note> note;
try {
note = handle.createQuery("""
@@ -74,7 +74,7 @@ public class NoteDao {
return note;
}
private static void deleteById(Handle handle, int id) {
private void deleteById(Handle handle, int id) {
try {
handle.createUpdate("""
UPDATE notes