|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--uk.co.kimble.cobra.ConnectionBroker
Singleton class, the init() method loads the data dictionary from the database. A single instance of this class can be accessed by the getConnectionBroker method.
| Method Summary | |
PersistentConnection |
getConnection(java.lang.String database)
Get a connection to the specified database |
static ConnectionBroker |
getConnectionBroker()
Return the single instance of connection broker |
static void |
init(PersistentConnection pc,
java.lang.String table)
Bootstrap method to initialise the ConnectionBroker |
void |
printDatabases()
Debug method to print out the available databases |
void |
releaseConnection(PersistentConnection pc)
Release a database connection, frees for reuse |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static ConnectionBroker getConnectionBroker()
throws PersistentException
public PersistentConnection getConnection(java.lang.String database)
throws PersistentException
database - is the COBRA database namepublic void releaseConnection(PersistentConnection pc)
pc - is the database connection to be releaqsepublic void printDatabases()
public static void init(PersistentConnection pc,
java.lang.String table)
throws PersistentException
pc - A PersistentConection instance connected to the main system database.table - The name of the table containing information about the available databases
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||