---
# System prepended metadata

title: Untitled

---

```java
if (searchTitle != null && searchYear != null && searchStar != null && searchDirector == null) {
    query = String.format(StringQuery + "where m.Title = '%1' AND year = '%2' AND m.star ")
}
else if (searchTitle != null && searchYear != null && searchStar == null && searchDirector != null) {
    query = String.format(StringQuery + "where m.Title = '' ")
}
else if (searchTitle != null && searchYear == null && searchStar != null && searchDirector != null) {
    query = String.format(StringQuery + "where m.Title = '' ")
}
else if (searchTitle == null && searchYear != null && searchStar != null && searchDirector != null) {
    query = String.format(StringQuery + "where m.Title = '' ")
}
```