All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.darwinsys.sql.DefaultConfigurationManager Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy