return null;
}
public T populate(ResultSet rs) throws SQLException, BeanResultSetPopulationException {
ResultSetField currentField = null;
try {
T bean = beanClass.newInstance();
for(ResultSetField resultSetField : this.resultSetFieldMap.values()){
currentField = resultSetField;
if(currentField.getResultSetColumnNameMethod() != null){
Object value = resultSetField.getResultSetColumnNameMethod().invoke(rs, resultSetField.getAlias());
if(rs.wasNull() && !resultSetField.getBeanField().getType().isPrimitive()){
resultSetField.getBeanField().set(bean, null);
}else{
resultSetField.getBeanField().set(bean, value);
}
}else{
String value = rs.getString(currentField.getAlias());
if(value != null || currentField.getBeanStringPopulator().getType().isPrimitive()){
resultSetField.getBeanField().set(bean, currentField.getBeanStringPopulator().getValue(value));
}else{
resultSetField.getBeanField().set(bean, null);
}
}
}