|
|
@ -34,8 +34,6 @@ public class Games { |
|
|
|
while (resultSet.next()) { |
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result += gameName + ", "; |
|
|
|
|
|
|
|
} |
|
|
@ -48,7 +46,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkConsoles() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Console FROM Games"; |
|
|
@ -675,7 +673,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkPublishers() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -687,8 +685,6 @@ public class Games { |
|
|
|
boolean spikeChun = false; |
|
|
|
boolean bandaiNamco = false; |
|
|
|
boolean activision = false; |
|
|
|
boolean whileSwitchOne = true; |
|
|
|
boolean whileSwitchTwo = true; |
|
|
|
|
|
|
|
try { |
|
|
|
Connection connection = DriverManager.getConnection(databaseURL); |
|
|
@ -700,9 +696,9 @@ public class Games { |
|
|
|
String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); |
|
|
|
String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); |
|
|
|
String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); |
|
|
|
|
|
|
|
while (whileSwitchOne) { |
|
|
|
while (whileSwitchTwo) { |
|
|
|
|
|
|
|
while (true) { |
|
|
|
while (true) { |
|
|
|
if (sega && gamePublisherEu.equals("Sega")) { |
|
|
|
break; |
|
|
|
} else if (atlus && gamePublisherEu.equals("Atlus")) { |
|
|
@ -846,8 +842,6 @@ public class Games { |
|
|
|
|
|
|
|
result += gamePublisherNa + ", "; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
@ -858,7 +852,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkPublishersEu() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_EU FROM Games"; |
|
|
@ -901,7 +895,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkPublishersJp() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_JP FROM Games"; |
|
|
@ -950,7 +944,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkPublishersNa() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_NA FROM Games"; |
|
|
@ -999,7 +993,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkReleaseDateUnknown() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Release_AU FROM Games"; |
|
|
@ -1015,8 +1009,8 @@ public class Games { |
|
|
|
String gameReleaseAu = resultSet.getString("Game_Release_AU"); |
|
|
|
|
|
|
|
if (gameReleaseAu == null) { |
|
|
|
|
|
|
|
result += gameName + ", "; |
|
|
|
|
|
|
|
result += gameName + ", "; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|