SyntaxFix
Write A Post
Hire A Developer
Questions
Another solution:
public class DaoTools { static public Integer getInteger(ResultSet rs, String strColName) throws SQLException { int nValue = rs.getInt(strColName); return rs.wasNull() ? null : nValue; } }