java.lang.Object
com.example.wellbeing_project.universal.DBConnection

public class DBConnection extends Object
Class for managing connection to the database.
  • Constructor Details

    • DBConnection

      public DBConnection()
  • Method Details

    • getInstance

      public static Connection getInstance()
      Returns the database connection instance.
      Returns:
      The database Connection.
      Throws:
      RuntimeException - if there's an error connecting to the database.