From 3511885503e57a6d55ed63b26197cc12c03f9a7f Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 23:13:39 +0100 Subject: [PATCH] Fixed Print Method and Added Column Names --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 13 +++++++------ 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 projjpn/GamesDB.laccdb diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index e67a55652846dc806f2bbac3ea7ba361b11006b5..1e9a2f9bfa7f641ec006b9f3b5d523ef0ace780c 100644 GIT binary patch delta 134 zcmZo@uxn_r+rY%fWX`f#fbRq2WCcE+CV_1Nj3@Y5@75oG_;mVNIYvpw)b{6cj6lo; z#LPgtI zF*6XeY=17tD!q`0liMfE(T4#D;u)q39AMqE{l)>-OKcN2@U^cx&I-hAK+F!r96-zo U#9Tnk4a7V^%)5QnalWt}0L%e0_5c6? diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb deleted file mode 100644 index 5a03e0388674df9c401c0cef4dc38d6267f63454..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e48823a..994a3c0 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -42,15 +42,16 @@ public class Games { Statement statement = connection.createStatement(); 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()) { - int id = resultSet.getInt("Game_ID"); String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); 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 gameReleaseEu = resultSet.getString("Game_Release_EU"); @@ -81,13 +82,13 @@ public class Games { String gamePlayers = resultSet.getString("Game_Players"); if (gamePegi != 0) { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; } else { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", "