com.darwinsys.sql
Class DefaultConfigurationManager

java.lang.Object
  extended by com.darwinsys.sql.DefaultConfigurationManager
All Implemented Interfaces:
ConfigurationManager

public class DefaultConfigurationManager
extends java.lang.Object
implements ConfigurationManager


Constructor Summary
DefaultConfigurationManager()
           
 
Method Summary
 java.util.List<Configuration> getConfigurations()
          Gets a list of valid Configurations.
 java.sql.Connection getConnection(Configuration config)
          Obtain a Connection (presumably from a Connection Pool); the Connection will be closed when SQLRunner is done with it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurationManager

public DefaultConfigurationManager()
Method Detail

getConfigurations

public java.util.List<Configuration> getConfigurations()
Description copied from interface: ConfigurationManager
Gets a list of valid Configurations.

Specified by:
getConfigurations in interface ConfigurationManager
Returns:
A List of Configuration objects that are suitable for display in a JComboBox (that is, has a user-friendly toString() method).

getConnection

public java.sql.Connection getConnection(Configuration config)
Description copied from interface: ConfigurationManager
Obtain a Connection (presumably from a Connection Pool); the Connection will be closed when SQLRunner is done with it.

Specified by:
getConnection in interface ConfigurationManager
Parameters:
config - An object previously provided by getConnectionsList().
Returns:
A JDBC Connection for this Configuration.


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.