Prepared new tests

This commit is contained in:
Riley Schneider
2025-12-03 22:10:24 +01:00
parent d9da291d45
commit 625e089a36
4 changed files with 39 additions and 9 deletions

View File

@@ -7,4 +7,5 @@ import java.sql.SQLException;
public interface Database {
public void connect() throws SQLException, IOException;
public void close() throws SQLException;
public void clearDatabase() throws SQLException;
}

View File

@@ -9,6 +9,6 @@ import java.util.Collection;
public interface DatabaseManager<E> extends Database {
public void saveObjects(Collection<E> objects) throws ExecutionControl.NotImplementedException, IOException, SQLException;
public Collection<E> getObjects() throws ExecutionControl.NotImplementedException;
public void saveObject(E object) throws ExecutionControl.NotImplementedException, IOException, SQLException;
public E getObject(int id) throws ExecutionControl.NotImplementedException;
public void saveObject(E object) throws IOException, SQLException;
public E getObject(int id) throws SQLException;
}

View File

@@ -1 +1 @@
INSERT INTO Task (name, description, workerid, taskstate) VALUES (?, ?, ?, ?)
INSERT INTO Task (taskid, name, description, workerid, taskstate) VALUES (?, ?, ?, ?, ?)