*/
public RDBMSAdapter(DatabaseConfiguration dbConfig, String driver, String url,
String userName, String password)
throws PersistenceException {
RdbmsDatabaseConfiguration config =
dbConfig.getRdbmsDatabaseConfiguration();
// create the connection manager, and configure it
_connectionManager = getConnectionManager(config.getClazz());
_connectionManager.setUser(userName);
_connectionManager.setPassword(password);
_connectionManager.setDriver(driver);
_connectionManager.setURL(url);
_connectionManager.setMaxActive(config.getMaxActive());
_connectionManager.setMaxIdle(config.getMaxIdle());
_connectionManager.setMinIdleTime(config.getMinIdleTime());
_connectionManager.setEvictionInterval(config.getEvictionInterval());
_connectionManager.setTestQuery(config.getTestQuery());
_connectionManager.setTestBeforeUse(config.getTestBeforeUse());
// initialisze the connection manager
_connectionManager.init();
Connection connection = null;