Browse Source

Added Javadoc to Developer Category Methods

dev
Adem Berber 2 years ago
parent
commit
01a2deab53
  1. 50
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

50
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. * @return Prints the games, that have the same publishers.
*/ */
public String checkAllSamePublishers() { public String checkAllSamePublishers() {
@ -226,9 +228,11 @@ public class Games {
return result.substring(0, result.length() - 2); 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. * @return Prints the games, that do not have the same publishers.
*/ */
public String checkAllDifferentPublishers() { public String checkAllDifferentPublishers() {
@ -263,6 +267,11 @@ public class Games {
return result.substring(0, result.length() - 2); 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() { public String checkAllDifferentPublishersDeveloper() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; 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); 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() { public String checkDeveloperAtlus() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Developer FROM Games"; String query = "SELECT Game_Name, Game_Developer FROM Games";
@ -693,6 +708,12 @@ public class Games {
return result.substring(0, result.length() - 2); 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() { public String checkDevelopers() {
String result = ""; String result = "";
String query = "SELECT Game_Developer FROM Games"; 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. * @return Prints the games, that have Nintendo as a publisher.
*/ */
public String checkPublisherNintendo() { 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. * @return Prints the games, that have Sega as a publisher.
*/ */
public String checkPublisherSega() { public String checkPublisherSega() {
@ -809,9 +834,11 @@ public class Games {
return result.substring(0, result.length() - 2); 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. * @return Prints the publishers from Europe, Japan and North America.
*/ */
public String checkPublishers() { public String checkPublishers() {
@ -992,9 +1019,10 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/** /**
* Checks the publishers that are available in the table across Europe * Checks the publishers that are available in the table across Europe
*
* @return Prints the publishers from Europe. * @return Prints the publishers from Europe.
*/ */
public String checkPublishersEu() { public String checkPublishersEu() {
@ -1039,9 +1067,10 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/** /**
* Checks the publishers that are available in the table across Japan * Checks the publishers that are available in the table across Japan
*
* @return Prints the publishers from Japan. * @return Prints the publishers from Japan.
*/ */
public String checkPublishersJp() { public String checkPublishersJp() {
@ -1092,9 +1121,10 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/** /**
* Checks the publishers that are available in the table across North America * Checks the publishers that are available in the table across North America
*
* @return Prints the publishers from North America. * @return Prints the publishers from North America.
*/ */
public String checkPublishersNa() { public String checkPublishersNa() {

Loading…
Cancel
Save