location,
DataSourceDefinition.class.getSimpleName(),
className));
}
DatabaseFactory factory = DatabaseFactory.createBuilder();
factory.setName(name);
factory.setDriverClass(driverClass);
if (! "".equals(def.url()))
factory.setUrl(def.url());
if (! "".equals(def.databaseName()))
factory.setDatabaseName(def.databaseName());
if (! "".equals(def.user()))
factory.setUser(def.user());
if (! "".equals(def.password()))
factory.setPassword(def.password());
return factory.create();
}