Code example for CallableStatement

Methods: setNull

0
		if (value != null) {
			logger.debug("setDate(" + pos + ", " + value + ")");
			stmt.setDate(pos, new java.sql.Date(value.getTime()));
		} else { 
			logger.debug("setNull(" + pos + ", Types.DATE)");
			stmt.setNull(pos, Types.DATE);
		} 
	} 
 
	protected void setDate(CallableStatement stmt, int pos, Calendar value)
			throws SQLException { 
		if (value != null) {
			logger.debug("setDate(" + pos + ", " + value + ")");
			stmt.setDate(pos, new java.sql.Date(value.getTimeInMillis()));
		} else { 
			logger.debug("setNull(" + pos + ", Types.DATE)");
			stmt.setNull(pos, Types.DATE);
		} 
	} 
 
	protected void setInteger(CallableStatement stmt, int pos, Integer value)