if (countPartialField==1) {
row = new Object[1];
row[0] = iter.next();
} else
row = (Object[]) iter.next();
Address addressResult = new Address();
if (address.getId() != null) {
addressResult.setId((Long) row[index]);
index++;
}
if (address.getStreet1() != null) {
addressResult.setStreet1((String) row[index]);
index++;
}
if (address.getStreet2() != null) {
addressResult.setStreet2((String) row[index]);
index++;
}
if (address.getCountryId() != null) {
addressResult.setCountryId_((Integer) row[index]);
index++;
}
returnList.add(addressResult);
}
return returnList;