System.DbNull?

Does Java have a class that is similar to the Microsoft .NET System.DBNull class?
[88 byte] By [wildenera] at [2007-11-27 8:11:24]
# 1
I don't know. What does System.DbNull do?At a wild guess you're looking for the java.sql.Types field NULL, maybe? Or possibly the Statement interface's setNull() methods?
dcmintera at 2007-7-12 19:55:22 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

> Does Java have a class that is similar to the

> Microsoft .NET System.DBNull class?

Not really no. But you don't need it.

You can use the wasNull method of ResultSet and as mentioned the setNull of PreparedStatement and updateNull of ResultSet.

There is no need of a Null object type with JDBC.

cotton.ma at 2007-7-12 19:55:22 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Thank you all for the tips.That will help me very much on my application.You really answered my question.God bless you. :)
wildenera at 2007-7-12 19:55:22 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...