Export data to CSV files in Java

Export data to CSV files in Java

vaadinofficial

54 года назад

13,439 Просмотров

Alejandro Duarte shows how to write CSV files from Java objects. 👇

0:00 Intro
0:09 The example web application
0:30 The domain model (entity/DTO/VO)
1:17 The OpenCSV Java library
1:31 The view (a Vaadin Grid with data)
2:11 File download logic
4:30 Transforming objects to CSV as a String
7:48 Excluding columns to export
9:10 Fixing "hash" values in the exported CSV file
10:18 Outro

Links:
Follow Alejandro on Twitter: https://twitter.com/alejandro_du
Vaadin Flow quick tutorial: https://vaadin.com/docs/v14/flow/tutorials/quick-start-tutorial
The Grid component: https://vaadin.com/docs/v14/flow/components/tutorial-flow-grid
Vaadin components and design system: https://vaadin.com/docs/latest/ds/overview
OpenCSV project: http://opencsv.sourceforge.net

Tip: The DynamicFileDownloade­r class in the Viritin add-on simplifies the code. Try it out: https://vaadin.com/directory/component/flow-viritin

Тэги:

#Vaadin #csv #sax_full_form_in_xml #java_csv #csv_java #design_pattern_in_java #apache_commons_create_csv #apache_commons_csv #convert_data_into_csv_file_in_java #convert_database_table_into_csv_in_java #convert_java_object_to_csv #covert_xml_to_csv_java #create_csv_file_using_poi #cse_file_to_pipeline_java #csv_report_jsp_java
Ссылки и html тэги не поддерживаются


Комментарии: