Prepared new tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
INSERT INTO Task (name, description, workerid, taskstate) VALUES (?, ?, ?, ?)
|
||||
INSERT INTO Task (taskid, name, description, workerid, taskstate) VALUES (?, ?, ?, ?, ?)
|
||||
Reference in New Issue
Block a user