Class used to create Database connection
◆ getConnection()
Connection dao.Database.getConnection |
( |
| ) |
throws SQLException |
|
inline |
Method to get a connection from the Database object.
- Returns
- A connection to the Database object.
- Exceptions
-
SQLException | if failing to get connection |
◆ instance()
static Database dao.Database.instance |
( |
| ) |
|
|
inlinestatic |
Checks if there is an existing instance of Database. If not, it creates one.
- Returns
- An instance of Database, either the existing one, or a newly created one.
The documentation for this class was generated from the following file:
- src/main/java/dao/Database.java