}
public void delete (long id) {
super.delete(id);
}
public Country showInformation(long id) {
Country country = new Country();
try {
String showStatement = "SELECT * FROM Countries WHERE id = ?";
PreparedStatement statement = connection.prepareStatement(showStatement);
statement.setLong(1, id);
ResultSet resultSet = statement.executeQuery();
while(resultSet.next()) {
country.setId(id);
country.setCapital(resultSet.getString("Capital"));
country.setLanguage(resultSet.getString("Language"));
country.setName(resultSet.getString("Name"));
}
} catch(SQLException e) {
Logs.info("Ошибка выборки " + e);
}
return country;