public interface DBPoolUtil
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.Modifier and Type | Method and Description |
---|---|
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. |
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
boolean initPool()
setDatabaseConnections(java.util.Iterator)
boolean clean()
setDatabaseConnections(java.util.Iterator)
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
Copyright © 2003-2014 QuickServer.org