I have an sql column PROTOCOL of Number type .It is nullable and a constraint on the table PROTOCOL IN(1,2,3).I am able to set to null. How to get the value if its null? I can do rs.getInt() but I dont think it returns null?
if(protocol==0)
{
stmt.setNull(15, java.sql.Types.INTEGER);
}
else{
stmt.setInt(15, protocol);
}