// if column count is 2 or less, it might map directly to a type like a Long or something, or be a map which does
// or if componentType is non-null, then we want an array like Long[] or String[]
if(_columnCount>2&&componentType==null)
thrownewMapperException("Exception when trying to get constructor for : "+returnTypeClass.getName()+" Must have default no-arg constructor or one that takes a single ResultSet.",e1);
thrownewMapperException("Exception when trying to get constructor for : "+_returnTypeClass.getName()+" Must have default no-arg constructor or one that takes a single ResultSet.",e1);
}
}
this.resultSetConstructor=resultSetConstructor;
this.constructor=constructor;
this.constructorLoaded=true;
}
/**
@ -148,6 +144,8 @@ public class RowToObjectMapper<T> extends RowMapper {