Subject | Re: [Firebird-Java] Re: OT: why is there no getInteger method in jdbc |
---|---|
Author | Roman Rokytskyy |
Post date | 2006-11-29T22:51:50Z |
>> 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 isYes, I did not think about NULL in this case. You're right, with autoboxing
> 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.
NULL will be replaced with new Integer(0).
Roman