Added a placeholder method to delete objects from the database.

This commit is contained in:
Riley Schneider
2025-12-03 22:29:52 +01:00
parent daafd7d09e
commit 995fba6fce
3 changed files with 14 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ public class SimpleDatabaseManager<E> implements DatabaseManager<E> {
}
@Override
public void saveObjects(Collection<E> objects) throws IOException, SQLException {
public void saveObjects(Collection<E> objects) throws SQLException {
for (E obj : objects) {
saveObject(obj);
}
@@ -56,8 +56,8 @@ public class SimpleDatabaseManager<E> implements DatabaseManager<E> {
@Override
public Collection<E> getObjects() throws ExecutionControl.NotImplementedException {
throw new ExecutionControl.NotImplementedException("Not Implemented!");
public Collection<E> getObjects() throws SQLException {
return null;
}
@Override
@@ -103,7 +103,12 @@ public class SimpleDatabaseManager<E> implements DatabaseManager<E> {
}
@Override
public void connect() throws SQLException, IOException {
public void deleteObject(int id) throws SQLException {
throw new SQLException("Not implemented yet");
}
@Override
public void connect() throws SQLException {
connection = DriverManager.getConnection("jdbc:mysql://sql7.freesqldatabase.com/sql7810540?user=sql7810540&password=mXdJCFtDZz");
}