org.mmbase.util
Class DatabaseLookup

java.lang.Object
  |
  +--org.mmbase.util.DatabaseLookup

public class DatabaseLookup
extends java.lang.Object

Selects a MMBase database configuration based on a java.sql.Connection


Constructor Summary
DatabaseLookup(java.io.File lookupConfig, java.io.File databaseConfigPath)
          constructor
 
Method Summary
 java.io.File getDatabaseConfig(java.sql.Connection connection)
          getDatabaseConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseLookup

public DatabaseLookup(java.io.File lookupConfig,
                      java.io.File databaseConfigPath)
constructor
Parameters:
lookupConfig - The config file that is used to lookup files
databaseConfigPath - The directory in which all the database configuration files can b found
Method Detail

getDatabaseConfig

public java.io.File getDatabaseConfig(java.sql.Connection connection)
getDatabaseConfig
Parameters:
connection - The connection of which the type of database has to be resolved
Returns:
The file with mmbase-database-configuration data for this type of connection


MMBase build 1.6.5.20030923