コード例 #1
0
 @Override
 public List<Address> findAddressOfOwnerByNameStartsWith(String name, Integer ownerId) {
   if (checkOwner) {
     return addressDAO.findAddressesOfOwnerByCategoryAndLastNameOrCompanyStartsWith(
         ownerId, category, name);
   } else {
     return addressDAO.findAddressesByCategoryAndNameOrCompanyStartsWith(category, name);
   }
 }
コード例 #2
0
 @Override
 public List<Address> findAddressByNameStartsWith(String name) {
   return addressDAO.findAddressesByCategoryAndNameOrCompanyStartsWith(category, name);
 }