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 96ad914..38b747b 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 @@ -192,7 +192,9 @@ public class Games { } /** - * Checks if the game has the same publishers across Europe, Japan and North America + * Checks if the game has the same publishers across Europe, Japan and North + * America + * * @return Prints the games, that have the same publishers. */ public String checkAllSamePublishers() { @@ -226,9 +228,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** - * Checks if the game has not the same publishers across Europe, Japan and North America + * Checks if the game has not the same publishers across Europe, Japan and North + * America + * * @return Prints the games, that do not have the same publishers. */ public String checkAllDifferentPublishers() { @@ -263,6 +267,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the developers and the publishers are all the same. + * + * @return Prints the games, where publishers and developers are the same. + */ public String checkAllDifferentPublishersDeveloper() { String result = ""; String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -663,6 +672,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the developer of the game is Atlus. + * + * @return Prints the games developed by Atlus. + */ + public String checkDeveloperAtlus() { String result = ""; String query = "SELECT Game_Name, Game_Developer FROM Games"; @@ -693,6 +708,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks the developers that are available in the table. + * + * @return Prints the developers from the table. + */ + public String checkDevelopers() { String result = ""; String query = "SELECT Game_Developer FROM Games"; @@ -737,7 +758,9 @@ public class Games { } /** - * Checks if the game has the publisher Nintendo across Europe, Japan and North America + * Checks if the game has the publisher Nintendo across Europe, Japan and North + * America + * * @return Prints the games, that have Nintendo as a publisher. */ public String checkPublisherNintendo() { @@ -774,7 +797,9 @@ public class Games { } /** - * Checks if the game has the publisher Sega across Europe, Japan and North America + * Checks if the game has the publisher Sega across Europe, Japan and North + * America + * * @return Prints the games, that have Sega as a publisher. */ public String checkPublisherSega() { @@ -809,9 +834,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** - * Checks the publishers that are available in the table across Europe, Japan and North America + * Checks the publishers that are available in the table across Europe, Japan + * and North America + * * @return Prints the publishers from Europe, Japan and North America. */ public String checkPublishers() { @@ -992,9 +1019,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across Europe + * * @return Prints the publishers from Europe. */ public String checkPublishersEu() { @@ -1039,9 +1067,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across Japan + * * @return Prints the publishers from Japan. */ public String checkPublishersJp() { @@ -1092,9 +1121,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across North America + * * @return Prints the publishers from North America. */ public String checkPublishersNa() {