com.darwinsys.sql.DefaultConfigurationManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.sql;
import java.sql.Connection;
import java.util.List;
import com.darwinsys.database.DataBaseException;
public class DefaultConfigurationManager implements ConfigurationManager {
public List getConfigurations() {
return ConnectionUtil.getConfigurations();
}
public Connection getConnection(Configuration config) {
try {
return ConnectionUtil.getConnection(config);
} catch (Exception e) {
throw new DataBaseException("Failed to get connection to " + config.getName(), e);
}
}
}