|
@ -42,15 +42,16 @@ public class Games { |
|
|
|
|
|
|
|
|
Statement statement = connection.createStatement(); |
|
|
Statement statement = connection.createStatement(); |
|
|
ResultSet resultSet = statement.executeQuery(query); |
|
|
ResultSet resultSet = statement.executeQuery(query); |
|
|
|
|
|
result += "Name, Console, Developer, Publisher EU, Publisher JP, Publisher NA, Genre, Release EU, Release JP, Release NA, Release AU, USK Rating, PEGI Rating, ESRB Rating, CERO Rating, ACB Rating, Players\n\n"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (resultSet.next()) { |
|
|
while (resultSet.next()) { |
|
|
int id = resultSet.getInt("Game_ID"); |
|
|
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
String gameDeveloper = resultSet.getString("Game_Developer"); |
|
|
String gameDeveloper = resultSet.getString("Game_Developer"); |
|
|
String gamePublisherEu = resultSet.getString("Game_Developer"); |
|
|
|
|
|
String gamePublisherJp = resultSet.getString("Game_Console"); |
|
|
|
|
|
String gamePublisherNa = resultSet.getString("Game_Console"); |
|
|
|
|
|
|
|
|
String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); |
|
|
|
|
|
String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); |
|
|
|
|
|
String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); |
|
|
String gameGenre = resultSet.getString("Game_Genre"); |
|
|
String gameGenre = resultSet.getString("Game_Genre"); |
|
|
|
|
|
|
|
|
String gameReleaseEu = resultSet.getString("Game_Release_EU"); |
|
|
String gameReleaseEu = resultSet.getString("Game_Release_EU"); |
|
@ -81,13 +82,13 @@ public class Games { |
|
|
String gamePlayers = resultSet.getString("Game_Players"); |
|
|
String gamePlayers = resultSet.getString("Game_Players"); |
|
|
|
|
|
|
|
|
if (gamePegi != 0) { |
|
|
if (gamePegi != 0) { |
|
|
result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu |
|
|
|
|
|
|
|
|
result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu |
|
|
+ ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " |
|
|
+ ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " |
|
|
+ gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " |
|
|
+ gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " |
|
|
+ gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero |
|
|
+ gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero |
|
|
+ ", " + gameAcb + ", " + gamePlayers + "\n"; |
|
|
+ ", " + gameAcb + ", " + gamePlayers + "\n"; |
|
|
} else { |
|
|
} else { |
|
|
result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu |
|
|
|
|
|
|
|
|
result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu |
|
|
+ ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " |
|
|
+ ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " |
|
|
+ gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " |
|
|
+ gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " |
|
|
+ gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", " |
|
|
+ gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", " |
|
|