public interface DatabaseConnectionProvider
Modifier and Type | Method and Description |
---|---|
DatabaseConnection |
createConnection()
Creates a new DatabaseConnection instance based on the given user.
|
void |
destroyConnection(DatabaseConnection connection)
Disconnects the given connection and disposes of any resources it holds.
|
Database |
getDatabase() |
User |
getUser() |
DatabaseConnection createConnection() throws DatabaseException
DatabaseException
- in case of a database exceptionvoid destroyConnection(DatabaseConnection connection)
connection
- the connection to destroyUser getUser()