You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
542 B
21 lines
542 B
package core.operation;
|
|
|
|
import core.user.User;
|
|
import dao.DBManagement;
|
|
import error.GExcptSQL;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class Delete extends Operation {
|
|
@Override
|
|
public Map<String, Object> execute(User subject) throws GExcptSQL {
|
|
Map<String, String> map = new HashMap<>();
|
|
map.put("id",(String)this.getOptions().get("id"));
|
|
for(String table:DBManagement.graduationDesignTables){
|
|
DBManagement.delete(table,map);
|
|
}
|
|
return this.getOptions();
|
|
}
|
|
}
|