This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
If you're getting objects (e.g. dates and strings) then the "more elegant" way would be to just compare said objects to null directly. You only need the "wasNull" method when you're getting primitives from the database.
Joined: Jul 09, 2007
Thanks for pointing that out. I thought they only work on Object type since that was I have read from the API Docs.
Going back to your suggestion.
So does it mean that for every columns, I'll have to add bunch of if statements to test if it is null?