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

@@ -7,8 +7,9 @@ import java.sql.SQLException;
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 IOException, SQLException;
public void saveObjects(Collection<E> objects) throws SQLException;
public Collection<E> getObjects() throws SQLException;
public void saveObject(E object) throws SQLException;
public E getObject(int id) throws SQLException;
public void deleteObject(int id) throws SQLException;
}