Class dbSetup
java.lang.Object
dbSetup
Provides a centralized utility for managing database connectivity.
This class loads configuration settings from external properties files
to establish a secure connection to the PostgreSQL backend.
* @author Team 60
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionAttempts to establish a connection to the PostgreSQL database.
-
Constructor Details
-
dbSetup
public dbSetup()
-
-
Method Details
-
getConnection
Attempts to establish a connection to the PostgreSQL database. Uses credentials and the URL defined in 'db_config.properties'. * @return A validConnectionobject if successful;nullif the driver is missing or credentials are incorrect.
-