# jyotikiresur225/studentmanagementsystem architecture

> Architecture diagram of the GitHub repository jyotikiresur225/studentmanagementsystem, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jyotikiresur225/studentmanagementsystem
- Repository: https://github.com/jyotikiresur225/studentmanagementsystem

## Overview

This Java desktop student-record manager supports CRUD through a Swing GUI and a separate console menu, with additional name, course, and all-record searches in the service/DAO. Both interfaces delegate to shared validation/business logic, which uses a JDBC DAO and a connection pool to access PostgreSQL. The Student model represents records across these layers. Edges are grounded in the shown calls and README configuration; the PostgreSQL schema is documented, while no database server implementation is part of the repository.

Main entry points: [`src/main/java/dao/StudentDAO.java`](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/dao/StudentDAO.java) (Student SQL operations), [`src/main/java/gui/StudentManagementGUI.java`](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/gui/StudentManagementGUI.java) (Swing management), [`src/main/java/service/StudentService.java`](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/service/StudentService.java) (Validation and search), [`src/main/java/model/Student.java`](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/model/Student.java) (Student record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_gui_main["GUI launcher<br/>[Main.java]"]
  node_swing_ui["Swing management"]
  node_console_ui["Console menu<br/>[StudentDriver.java]"]
end

subgraph group_domain["Student domain"]
  node_student["Student record<br/>[Student.java]"]
  node_service["Validation and search"]
end

subgraph group_persistence["Persistence"]
  node_dao["Student SQL operations<br/>[StudentDAO.java]"]
  node_connection["JDBC connection pool"]
end

node_user(("User"))
node_postgres[("PostgreSQL student store")]

node_user -->|"starts GUI"| node_gui_main
node_gui_main -->|"creates window"| node_swing_ui
node_user -.->|"uses controls"| node_swing_ui
node_user -.->|"uses menu"| node_console_ui
node_swing_ui -->|"invokes operations"| node_service
node_console_ui -->|"invokes operations"| node_service
node_swing_ui -->|"creates and reads"| node_student
node_console_ui -->|"creates and reads"| node_student
node_service -->|"validates fields"| node_student
node_service -->|"delegates CRUD and searches"| node_dao
node_dao -->|"borrows and returns"| node_connection
node_dao -->|"maps query results"| node_student
node_connection -->|"opens JDBC connections"| node_postgres
node_dao -->|"queries student table"| node_postgres

click node_gui_main "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/gui/Main.java"
click node_swing_ui "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/gui/StudentManagementGUI.java"
click node_console_ui "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/ui/StudentDriver.java"
click node_student "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/model/Student.java"
click node_service "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/service/StudentService.java"
click node_dao "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/dao/StudentDAO.java"
click node_connection "https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/connection/DatabaseConnection.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gui_main,node_swing_ui,node_console_ui,node_user toneBlue
class node_student,node_service,node_postgres toneAmber
class node_dao,node_connection toneMint
```

## Components

### User interfaces

- [GUI launcher](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/gui/Main.java): `src/main/java/gui/Main.java`
- [Swing management](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/gui/StudentManagementGUI.java): `src/main/java/gui/StudentManagementGUI.java`
- [Console menu](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/ui/StudentDriver.java): `src/main/java/ui/StudentDriver.java`

### Student domain

- [Student record](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/model/Student.java): `src/main/java/model/Student.java`
- [Validation and search](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/service/StudentService.java): `src/main/java/service/StudentService.java`

### Persistence

- [Student SQL operations](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/dao/StudentDAO.java): `src/main/java/dao/StudentDAO.java`
- [JDBC connection pool](https://github.com/jyotikiresur225/studentmanagementsystem/blob/main/src/main/java/connection/DatabaseConnection.java): `src/main/java/connection/DatabaseConnection.java`

### Other components

- **User**
- **PostgreSQL student store**

## Connections

- User → GUI launcher: starts GUI (evidence: `README.md`)
- GUI launcher → Swing management: creates window (evidence: `src/main/java/gui/Main.java`)
- User → Swing management: uses controls
- User → Console menu: uses menu
- Swing management → Validation and search: invokes operations (evidence: `src/main/java/gui/StudentManagementGUI.java`)
- Console menu → Validation and search: invokes operations (evidence: `src/main/java/ui/StudentDriver.java`)
- Swing management → Student record: creates and reads (evidence: `src/main/java/gui/StudentManagementGUI.java`)
- Console menu → Student record: creates and reads (evidence: `src/main/java/ui/StudentDriver.java`)
- Validation and search → Student record: validates fields (evidence: `src/main/java/service/StudentService.java`)
- Validation and search → Student SQL operations: delegates CRUD and searches (evidence: `src/main/java/service/StudentService.java`)
- Student SQL operations → JDBC connection pool: borrows and returns (evidence: `src/main/java/dao/StudentDAO.java`)
- Student SQL operations → Student record: maps query results (evidence: `src/main/java/dao/StudentDAO.java`)
- JDBC connection pool → PostgreSQL student store: opens JDBC connections (evidence: `README.md`)
- Student SQL operations → PostgreSQL student store: queries student table (evidence: `README.md`)
