Subject Re: [Firebird-Java] Re: OT: why is there no getInteger method in jdbc
Author Roman Rokytskyy
>> I guess Sun just did not want to polute the code with such methods. Even
>> more, starting Java 5.0 the issue is gone due to autoboxing.
> Roman, I dont think autoboxing will do the trick here. If the int is
> NULL in the database, getInt() will return a zero, and autoboxing would
> result in a Integer.valueOf(0) and not the desired null. Anyway, I think
> autoboxing is evil and should be avoided in most situations.

Yes, I did not think about NULL in this case. You're right, with autoboxing
NULL will be replaced with new Integer(0).