|
QuickServer v1.4.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used by QuickServer
load all db drivers.
It is also used to get Connection
object by
the QuickServer when it encounters <db-object-pool>...</db-object-pool>
in its configuration file.
Method Summary | |
boolean |
clean()
This method will close all db connection pools that was set using setDatabaseConnections(java.util.Iterator) |
java.sql.Connection |
getConnection(java.lang.String id)
Returns the Connection object for the
DatabaseConnection that is identified by id passed. |
boolean |
initPool()
This method will initilise and load all the db connection pools that was set using setDatabaseConnections(java.util.Iterator) |
void |
setDatabaseConnections(java.util.Iterator iterator)
QuickServer passes the an iterator containing
DatabaseConnectionConfig
objects if any from the xml configuration it reads. |
Method Detail |
public void setDatabaseConnections(java.util.Iterator iterator) throws java.lang.Exception
iterator
containing
DatabaseConnectionConfig
objects if any from the xml configuration it reads.
java.lang.Exception
public boolean initPool()
setDatabaseConnections(java.util.Iterator)
public boolean clean()
setDatabaseConnections(java.util.Iterator)
public java.sql.Connection getConnection(java.lang.String id) throws java.lang.Exception
Connection
object for the
DatabaseConnection that is identified by id passed. If id passed
does not match with any connection loaded by this class it will
return null
.
java.lang.Exception
|
QuickServer v1.4.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |