Added a placeholder method to delete objects from the database.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user