Removed old handlers

This commit is contained in:
2023-10-18 10:23:35 -04:00
parent 4d290c9064
commit 89cb808481
4 changed files with 0 additions and 78 deletions
@@ -105,25 +105,6 @@ public class dbBuildingHandler extends dbHandlerBase {
return buildings;
}
public ArrayList<Building> GET_ALL_BUILDINGS_FOR_ZONE(Zone zone) {
ArrayList<Building> buildings = new ArrayList<>();
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT `obj_building`.*, `object`.`parent` FROM `object` INNER JOIN `obj_building` ON `obj_building`.`UID` = `object`.`UID` WHERE `object`.`parent` = ?;")) {
preparedStatement.setLong(1, zone.getObjectUUID());
ResultSet rs = preparedStatement.executeQuery();
buildings = getObjectsFromRs(rs, 1000);
} catch (SQLException e) {
Logger.error(e);
}
return buildings;
}
public Building GET_BUILDINGBYUUID(int uuid) {
if (uuid == 0)