public interface DbService
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects to the given database.
|
void |
disconnect()
Disconnects from the database.
|
org.osgi.framework.ServiceRegistration |
getServiceRegistration()
Get the registration for this service.
|
void |
setServiceRegistration(org.osgi.framework.ServiceRegistration registration)
Set the registration suitable for this service.
|
void connect() throws ConnectionException
ConnectionException
- If DB connection cannot be established.void disconnect() throws ConnectionException
ConnectionException
org.osgi.framework.ServiceRegistration getServiceRegistration()
void setServiceRegistration(org.osgi.framework.ServiceRegistration registration)
Copyright © 2013. All Rights Reserved.