Detecting Nulls
0 posts in topic
Flat View  Flat View

Posted By:   David_Smith
Posted On:   Wednesday, March 21, 2001 07:32 AM

What is the most efficient way to detect NULLs returned in a ResultSet? I've built a generalized server that executes any StoredProcedure and returns the result over IP. Using ResultSet.getString( int ) returns the String "null" if the DB value is null, but that is not the value of the data!

I am aware of the ResultSet.wasNull() method, but I would have to call that for every record returned by every StoredProcedure and that sounds inefficient. Is there a better way?

About | Sitemap | Contact