> 5) public static Long readLong(ResultSet rs, int index) throws SQLException { Long result = new Long(rs.getLong(index)); if (rs.wasNull()) { return null; } else { return result; } }
public static void setLong(PreparedStatement pstmt, int index, Long value) throws SQLException { if (value == null) { pstmt.setNull(index, Types.NUMBER); } else { pstmt.setLong(index, value.longValue(); } } And similar methods for the rest of supported types? Regards Tomek Pik [EMAIL PROTECTED] > Hen -- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>