Browse Source

Fixed Print Method and Added Column Names

dev
Adem Berber 3 years ago
parent
commit
3511885503
  1. BIN
      projjpn/GamesDB.accdb
  2. BIN
      projjpn/GamesDB.laccdb
  3. 13
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

BIN
projjpn/GamesDB.accdb

BIN
projjpn/GamesDB.laccdb

13
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 + ", "

Loading…
Cancel
Save