Browse Source

Added Javadoc to Release Date Category Methods

dev
Adem Berber 3 years ago
parent
commit
54028aec73
  1. 29
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

29
projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

@ -306,6 +306,12 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/**
* Checks if the release dates are all the same across Europe, Japan, North
* America and Australia.
*
* @return Prints the games which have the same release dates.
*/
public String checkAllSameReleaseDates() { public String checkAllSameReleaseDates() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games";
@ -347,6 +353,12 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/**
* Checks if the release dates are not all the same across Europe, Japan, North
* America and Australia.
*
* @return Prints the games which do not have the same release dates.
*/
public String checkAllDifferentReleaseDates() { public String checkAllDifferentReleaseDates() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games";
@ -1176,6 +1188,11 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/**
* Checks the release dates that are unknown.
*
* @return Prints the games which do not have a release date.
*/
public String checkReleaseDateUnknown() { public String checkReleaseDateUnknown() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Release_AU FROM Games"; String query = "SELECT Game_Name, Game_Release_AU FROM Games";
@ -1206,6 +1223,12 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/**
* Checks if the release years are all the same across Europe, Japan, North
* America and Australia.
*
* @return Prints the games which have the same release year.
*/
public String checkAllSameReleaseYear() { public String checkAllSameReleaseYear() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games";
@ -1247,6 +1270,12 @@ public class Games {
return result.substring(0, result.length() - 2); return result.substring(0, result.length() - 2);
} }
/**
* Checks if the release year are not all the same across Europe, Japan, North
* America and Australia.
*
* @return Prints the games which do not have the same release year.
*/
public String checkAllDifferentReleaseYear() { public String checkAllDifferentReleaseYear() {
String result = ""; String result = "";
String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games";

Loading…
Cancel
Save