Commit 877cd0bb authored by Daniel Kim's avatar Daniel Kim
Browse files

search quickly!

parent 0dde568e
......@@ -155,9 +155,15 @@ public class ClientApplication {
default: break;
}
try {
} catch (Exception e) {
System.out.println(e);
}
switch (type) {
case "movie":
searchQueryString = "select title, releaseDate, description from Movies where title like '%%%s%%' %s limit 10";
searchQueryString = "select title, releaseDate, description, duration, averageRating, totalRating, metascore from Movies inner join Income using (movieID) inner join Budget using (movieID) inner join ProductionCompaniesInMovies using (movieID) inner join LanguagesInMovies using (movieID) inner join GenresInMovies using (movieID) inner join Reviews using (movieID) where title like '%%%s%%' %s limit 10";
break;
case "genre":
searchQueryString = "select title, releaseDate, genre, description from Movies inner join GenresInMovies using (movieID) where genre like '%%%s%%' %s limit 10";
......@@ -179,6 +185,10 @@ public class ClientApplication {
}
}
public static void advancedDetails(String movie) {
}
public static void addFavourite(String entity) {
String searchMovieQueryString = "select * from Movies where title like '%s%%'";
try {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment