Class DBConnection
java.lang.Object
csce331.group13.project2.db.DBConnection
Manages database connections using HikariCP connection pooling.
Provides a centralized way to obtain database connections throughout the application.
- Author:
- Varish Kongara
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionObtains a database connection from the connection pool.
-
Method Details
-
getConnection
Obtains a database connection from the connection pool.- Returns:
- A Connection object to the database.
- Throws:
SQLException- if a database access error occurs.
-