|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDatabaseManagement
Database connection manager.
Method Summary | |
---|---|
void |
closeDbConnection()
Shutdown database connection. |
boolean |
createDbConnection(String protocol,
String databaseName,
String userName,
String password)
Create a new connection to the database. |
void |
deRegister(IDatabaseListener listener)
De-register with the database manager for update database notification messages. |
IDbReadAccess |
getReadAccess()
Get a read access to the database. |
IDbWriteAccess |
getWriteAccess()
Get a write access to the database. |
boolean |
hasBeenInitialised()
Has this database been initialised? |
boolean |
isCurrentlyConnected()
Is the manager currently connected to the database? |
void |
register(IDatabaseListener listener)
Register with the database manager for update database notification messages. |
void |
updateConnectionStatus()
Inform all connected components of current connection status. |
Method Detail |
---|
boolean createDbConnection(String protocol, String databaseName, String userName, String password)
protocol
- The JDBC protocol.databaseName
- The database name.userName
- The database user name.password
- The password for the database.
void closeDbConnection()
void register(IDatabaseListener listener)
listener
- The db listener.void deRegister(IDatabaseListener listener)
listener
- The db listener.IDbReadAccess getReadAccess()
IDbWriteAccess getWriteAccess()
boolean isCurrentlyConnected()
boolean hasBeenInitialised()
void updateConnectionStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |