java – Many DB queries and conditions


I don’t know it is some design pattern for it or I can’t do it in a different way the code looks like this:

Iteam iteam = itemRepository.findByNameAndNoAndCountryCodeAndCurrencyCode(name, countryCode, currencyCode);
    if(item == null){
        item = itemRepository.findByNameAndNoAndCountryCodeAndCurrencyCode(name, "US", currrencyCode)
    }
    if(item == null){
        item = itemRepository.findByNameAndNoAndCountryCodeAndCurrencyCode(name, countryCode, "USD")
    }
    if(item == null){
        item = itemRepository.findByNameAndCountryCode(name, countryCode)
    }
    if(item == null){
        item = itemRepository.findByNameAndCurrencyCode(name, currrencyCode)
    }

And I have a lot of this (like 15) kind of queries with the condition it is possible to do not make to many conditions and use some trick for this code?