DbExporter

  1. Home
  2. »
  3. Project
  4. »
  5. DbExporter
This is a Java application for exporting data from a MySQL database to various formats (e.g., HTML, XML, etc.). The application uses Swing for the graphical user interface and supports a plug-and-play architecture for adding new export formats without changing existing code.
Date : September 21, 2023

Project Description

Database Exporter Application

This is a Java application for exporting data from a MySQL database table to various formats (e.g., HTML, XML, etc.). The application uses Swing for the graphical user interface and supports a plug-and-play architecture with configuration-less addition of new export formats without changing existing code.

Features

  • Export data from MySQL database tables.
  • Supports multiple export formats (e.g., HTML, XML, etc.).
  • Extensible architecture for adding new export formats without modifying existing code.
  • Graphical user interface using Swing.
  • Virtually configurationless operation.

Variants

  • v0  :(uses an XML config file for adding new export formats) \
  • v1  :(Configurationless addition of new export formats)\
  • Base App : v1 + new export format name annotations (@ExportType)

Prerequisites

  • Java 8 or higher
  • MySQL database
  1. 
    

Usage

Launch the application using the steps mentioned in the Getting Started section.
Connect to your MySQL database by entering the database name, username, and password.
Click “Show Tables” to display the available tables.
Select a table from the list.
Choose an export format from the dropdown menu.
Click “Export Table” to export the selected table to the chosen format.

Plugin Architecture

The application employs a plugin architecture, allowing you to add new export formats without modifying existing code or addintional config. To add a new export format, simply create a new class implementing the Exportable interface and place it in the org.nmpl.exporters package.

No changes to the existing code are needed. The new class is automatically recognized and integrated into the application at runtime.

Configurationless Operation

The application is designed for configurationless operation due to its internal usage of Reflection and class loader libraries.


Note : You may choose to use the version of the program that does not uses an XML configuration file to load the new export types Go to the V0 directory and run the App.java inside it

The config.xml file, located in the resources directory, maps export formats to their corresponding Java class names. This enables the application to dynamically recognize and utilize new exporters without explicit configuration.

Example config.xml:

<exporters>
<exporter> 
 <type>html</type> 
<class>org.nmpl.exporters.HTMLExporter</class> 
</exporter> 
<exporter>
<type>xml</type>
 <class>org.nmpl.exporters.XMLExporter</class> 
</exporter>
 <exporter> 
<type>newformat</type> 
<class>org.nmpl.exporters.NewFormatExporter</class>
 </exporter>
 <!-- Add more exporter configurations as needed --> 
</exporters>

Stories From Our Amazing Clients

Mr. Durgesh Kumar Manager, Pidilite Industries

"Bitmutex Technologies has been an invaluable partner for Pidilite Industries. Their expertise, reliability, and innovative solutions have greatly enhanced our operational efficiency. We highly recommend them for their professionalism and commitment to excellence."

Dr.Harijiban Banerji Director, Senbo

"Bitmutex Technologies has been instrumental in enhancing our software services at Senbo Industries. Their team's expertise and innovative approach have streamlined our processes and delivered outstanding results. We highly recommend them for any software service needs."

Mr. Arjun Singh Director, Jhonson Controls

"Bitmutex has proven to be a valuable partner for Johnson Controls. Their exceptional software service delivery and commitment to excellence have greatly improved our project outcomes. I highly recommend them for their expertise and reliability."

Our diverse clientele

Some of the firms and organizations we consider more than just out clients

We deliver 100+ successful projects in a year

Embark on your exciting journey of digital transformation today and unlock new possibilities for growth and innovation.

Schedule a call with us or drop a word

Let's address your business challenges with effective solutions.

Build your next big thing with us

Build your next big thing with us

Please enable JavaScript in your browser to complete this form.
Service for enquiry

we churn out 100+ successful projects in a year

lets solve your business problems

Please enable JavaScript in your browser to complete this form.
Service for enquiry