-
Nested Class Summary
Nested Classes
Modifier and Type |
Interface |
Description |
static interface |
DatabaseConnector.ConnectionCallback |
Wraps a connection in a callback which will automagically handle catching sql errors
|
-
Method Summary
-
Method Details
-
boolean isInitialized()
Checks if the connection to the database has been created
- Returns:
- true if the connection is created, otherwise false
-
void closeConnection()
Closes all open connections to the database
-
Executes a callback with a Connection passed and automatically closes it when finished
- Parameters:
callback
- The callback to execute once the connection is retrieved