| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(Connection.ConnectionListener listener)
Registers the supplied ConnectionListener to be notified when the status
of the database connection changes.
|
void |
connect()
|
void |
disconnect()
Disconnects from
Storage. |
String |
getConnectionUrl() |
void |
removeConnectionListener(Connection.ConnectionListener listener)
Unregisters the supplied ConnectionListener if it was previously
registered via
#addConnectionListener(ConnectionListener). |
void connect()
throws ConnectionException
Storage and registers Storage instance which
was used for the connection as a service.
ConnectionException - If DB connection cannot be established.void disconnect()
throws ConnectionException
Storage.
ConnectionExceptionString getConnectionUrl()
IllegalStateException - if not connected to storage.void addConnectionListener(Connection.ConnectionListener listener)
listener - - the listener to be registeredvoid removeConnectionListener(Connection.ConnectionListener listener)
#addConnectionListener(ConnectionListener).listener - - the listener to be unregisteredCopyright © 2015. All rights reserved.