else {
throw new SQLExceptionWrapper(L.l("driver '{0}' has not been configured for pool {1}. <database> needs either a <data-source> or a <type>.",
_driverClass, getDBPool().getName()));
}
ConfigType configType = TypeFactory.getType(driverObject);
// server/14g1
if (_driverURL != null) {
if (! configType.setProperty(driverObject, URL, _driverURL)) {
if (! (driverObject instanceof Driver)) {
throw new ConfigException(L.l("database: 'url' is an unknown property of '{0}'",
driverObject.getClass().getName()));
}
}
}
if (_user != null) {
if (! configType.setProperty(driverObject, USER, _user)) {
if (! (driverObject instanceof Driver)) {
throw new ConfigException(L.l("database: 'user' is an unknown property of '{0}'",
driverObject.getClass().getName()));
}
}
}
if (_password != null) {
if (! configType.setProperty(driverObject, PASSWORD, _password)) {
if (! (driverObject instanceof Driver)) {
throw new ConfigException(L.l("database: 'password' is an unknown property of '{0}'",
driverObject.getClass().getName()));
}
}