|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.spaz.cron.datasource.sql.ConnectionManager
public class ConnectionManager
Class for JDBC connection management. Provides information about available datasources, and provides Connection objects to calling classes that are guaranteed to be working.
Method Summary | |
---|---|
void |
addConnectionStatusListener(IConnectionStatusObserver observer)
Add an observer for notification when the database connection is made. |
java.sql.Connection |
getConnection()
Get the database connection. |
static java.util.List |
getDatabaseIDs()
Retrieve a list of available database IDs. |
static ConnectionManager |
getInstance(java.lang.String dbID)
Get an instance of a ConnectionManager for a particular dbID. |
void |
removeConnectionStatusListener(IConnectionStatusObserver observer)
Remove an observer from this ConnectionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List getDatabaseIDs()
List
containing DatabaseID
implementations for every available user datasource.public static ConnectionManager getInstance(java.lang.String dbID)
dbID
- the ID of the connection
ConnectionManager
for the IDpublic void addConnectionStatusListener(IConnectionStatusObserver observer)
observer
- the Observer.public java.sql.Connection getConnection()
public void removeConnectionStatusListener(IConnectionStatusObserver observer)
observer
- the Observer to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |