This Java project revolves around handling products via a Data Access Object (DAO) model. The project comprises classes and methods responsible for interacting with a database to perform CRUD (Create, Read, Update, Delete) operations on product information.
The ProductDAO class serves as the primary controller to manage product data. It facilitates interactions between the application and the underlying database. The methods within ProductDAO encompass functionalities for checking product existence, retrieving all products, fetching detailed product information, adding, deleting, and editing products.
- Java
- JDBC (Java Database Connectivity)
- SQL (Structured Query Language)
- Swing (for GUI-based notifications)
- isProductExists - Checks if a product exists in the database based on a given product code.
- allProductList - Retrieves a list of all available products from the database.
- getFullProduct - Fetches comprehensive details of a specific product, including data from related tables.
- addProduct - Adds a new product to the database, including related information in associated tables.
- deleteProduct - Removes a product and its related data from the database.
- editProduct - Modifies an existing product with updated information.
To use this project:
- Ensure you have a compatible Java Development Kit (JDK) installed.
- Set up a database and configure the
ConnectionFactoryclass to establish a connection. - Compile and run the project in your preferred Java development environment.
- Clone this repository.
- Import the project into your Java IDE.
- Configure the database connection parameters in the
ConnectionFactoryclass. - Run the project to interact with the product management functionalities.
- Ensure proper database setup and configurations before executing the project.
- Error handling and logging mechanisms are integrated for better debugging and notification purposes.
- This project utilizes Swing-based pop-up notifications for user interaction feedback.
Feel free to expand upon this README by adding sections such as "Installation," "Contributing Guidelines," or any other pertinent information to enhance its usability for potential users or contributors.