Skip to content

This repository is a comprehensive collection of Java JDBC examples, conceptual notes, and a fully functional Contact Manager application. It serves as a learning resource for those interested in understanding JDBC (Java Database Connectivity) and how to interact with relational databases using Java.

License

Notifications You must be signed in to change notification settings

giriraj-g0511/jdbc-notes-tutorials-and-contact-manager-app

Repository files navigation

jdbc-notes-tutorials-and-contact-manager-app


JDBC Notes, Tutorials & Contact Manager App

This repository provides a comprehensive learning experience for Java Database Connectivity (JDBC), along with a practical Contact Management App built using the MVC architecture.

📚 JDBC Notes

  • JDBC Notes.txt: A detailed guide explaining JDBC concepts and steps to connect with a database.
  • JDBC Extra.txt: Additional tips and tricks for advanced JDBC usage.

💻 Basic JDBC Programs (demoPrograms)

Contains demo programs that illustrate common JDBC operations:

  • BatchExecution.java: Demonstrates executing multiple SQL statements in one go.
  • DeleteData.java: Shows how to delete records from a database.
  • DeleteDataPreparedStatement.java: Delete records securely using PreparedStatement.
  • InsertData.java: Demonstrates inserting data into a database.
  • InsertDataPreparedStatement.java: Insert data securely using PreparedStatement.
  • JDBC_Steps.java: A guide to the fundamental steps of using JDBC.
  • ReadData.java: Shows how to retrieve data from a database.
  • ReadDataPreparedStatement.java: Retrieve data securely using PreparedStatement.
  • UpdateData.java: Demonstrates updating data in the database.
  • UpdateDataPreparedStatement.java: Update data securely with PreparedStatement.

📱 Contact Management App

This console-based app is structured using the MVC (Model-View-Controller) architecture:

  • controller/Controller.java: Handles user interactions and updates the model.
  • model/Contact.java: Represents the contact data and interactions with the database.
  • view/View.java: Manages the user interface for displaying contacts and accepting input.

Features:

  • Add, update, delete, and display contacts.
  • Search by name, company, email, city, or phone number.
  • Store multiple phone numbers for a single contact.

🔧 Technologies Used

  • Java (JDK 8+)
  • JDBC (Java Database Connectivity)
  • MySQL/PostgreSQL/SQLite (Database)
  • MVC Architecture
  • PreparedStatement for secure SQL queries

📞 Contact

Feel free to raise any issues or ask questions through GitHub Issues or the repository’s contact section.

🔗 [GitHub Repo Link]

📝 License

This project is open-source and available under the MIT License. See the LICENSE file for more details.

About

This repository is a comprehensive collection of Java JDBC examples, conceptual notes, and a fully functional Contact Manager application. It serves as a learning resource for those interested in understanding JDBC (Java Database Connectivity) and how to interact with relational databases using Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages