if (countPartialField==1) {
row = new Object[1];
row[0] = iter.next();
} else
row = (Object[]) iter.next();
Role roleResult = new Role();
if (role.getId() != null) {
roleResult.setId((Integer) row[index]);
index++;
}
if (role.getName() != null) {
roleResult.setName((String) row[index]);
index++;
}
returnList.add(roleResult);
}
return returnList;