com.darwinsys.sql
Interface ConfigurationManager

All Known Implementing Classes:
DefaultConfigurationManager

public interface ConfigurationManager

The contract that an application/environment has to provide to SQLRunner to obtain JDBC Connections.


Method Summary
 java.util.List<Configuration> getConfigurations()
          Gets a list of valid Configurations.
 java.sql.Connection getConnection(Configuration conn)
          Obtain a Connection (presumably from a Connection Pool); the Connection will be closed when SQLRunner is done with it.
 

Method Detail

getConfigurations

java.util.List<Configuration> getConfigurations()
Gets a list of valid Configurations.

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

getConnection

java.sql.Connection getConnection(Configuration conn)
Obtain a Connection (presumably from a Connection Pool); the Connection will be closed when SQLRunner is done with it.

Parameters:
conn - 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.