|
@ -1353,4 +1353,62 @@ public class Games { |
|
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
return result.substring(0, result.length() - 2); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkUskSix() { |
|
|
|
|
|
String result = ""; |
|
|
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
Connection connection = DriverManager.getConnection(databaseURL); |
|
|
|
|
|
|
|
|
|
|
|
Statement statement = connection.createStatement(); |
|
|
|
|
|
ResultSet resultSet = statement.executeQuery(query); |
|
|
|
|
|
|
|
|
|
|
|
while (resultSet.next()) { |
|
|
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
|
|
int gameUsk = resultSet.getInt("Game_USK_Rating"); |
|
|
|
|
|
|
|
|
|
|
|
if (gameUsk == 6) { |
|
|
|
|
|
result += gameName + ", "; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
statement.close(); |
|
|
|
|
|
connection.close(); |
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkUskTwelve() { |
|
|
|
|
|
String result = ""; |
|
|
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
Connection connection = DriverManager.getConnection(databaseURL); |
|
|
|
|
|
|
|
|
|
|
|
Statement statement = connection.createStatement(); |
|
|
|
|
|
ResultSet resultSet = statement.executeQuery(query); |
|
|
|
|
|
|
|
|
|
|
|
while (resultSet.next()) { |
|
|
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
|
|
int gameUsk = resultSet.getInt("Game_USK_Rating"); |
|
|
|
|
|
|
|
|
|
|
|
if (gameUsk == 12) { |
|
|
|
|
|
result += gameName + ", "; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
statement.close(); |
|
|
|
|
|
connection.close(); |
|
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
|
|
} |
|
|
} |
|
|
} |