|
|
@ -508,4 +508,34 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
public String checkDeveloperAtlus() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Developer 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"); |
|
|
|
String gameDeveloper = resultSet.getString("Game_Developer"); |
|
|
|
|
|
|
|
if (gameDeveloper.equals("Atlus")) { |
|
|
|
result += gameName + ", "; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
|
|
|
|
|
} catch (SQLException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
} |