From f4f76e0c0b30fd110bc95afe8ddcdf3f29fbf2bf Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 03:56:15 +0100 Subject: [PATCH] Added Javadoc to Publisher Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) 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 05f3b92..96ad914 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 @@ -191,6 +191,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * 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() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -222,7 +226,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 + * @return Prints the games, that do not have the same publishers. + */ public String checkAllDifferentPublishers() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -728,6 +736,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * 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() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -761,6 +773,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * 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() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -793,7 +809,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 + * @return Prints the publishers from Europe, Japan and North America. + */ public String checkPublishers() { String result = ""; String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -972,7 +992,11 @@ 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() { String result = ""; String query = "SELECT Game_Publisher_EU FROM Games"; @@ -1015,7 +1039,11 @@ 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() { String result = ""; String query = "SELECT Game_Publisher_JP FROM Games"; @@ -1064,7 +1092,11 @@ 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() { String result = ""; String query = "SELECT Game_Publisher_NA FROM Games";