org.unitils.dbmaintainer.util
Class DatabaseModuleConfigUtils

java.lang.Object
  extended by org.unitils.dbmaintainer.util.DatabaseModuleConfigUtils

public class DatabaseModuleConfigUtils
extends Object

Class containing configuration utility methods specifically for the DatabaseModule and related modules

Author:
Filip Neven, Tim Ducheyne

Field Summary
static String PROPKEY_DATABASE_DIALECT
          Property key of the SQL dialect of the underlying DBMS implementation
 
Constructor Summary
DatabaseModuleConfigUtils()
           
 
Method Summary
static
<T extends DatabaseAccessing>
T
getConfiguredDatabaseTaskInstance(Class<T> databaseTaskType, Properties configuration, SQLHandler sqlHandler)
          Retrieves the concrete instance of the class with the given type as configured by the given Configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPKEY_DATABASE_DIALECT

public static final String PROPKEY_DATABASE_DIALECT
Property key of the SQL dialect of the underlying DBMS implementation

See Also:
Constant Field Values
Constructor Detail

DatabaseModuleConfigUtils

public DatabaseModuleConfigUtils()
Method Detail

getConfiguredDatabaseTaskInstance

public static <T extends DatabaseAccessing> T getConfiguredDatabaseTaskInstance(Class<T> databaseTaskType,
                                                                                Properties configuration,
                                                                                SQLHandler sqlHandler)
Retrieves the concrete instance of the class with the given type as configured by the given Configuration. The concrete instance must extend the class DatabaseAccessing.

Type Parameters:
T - The type of the DatabaseTask
Parameters:
databaseTaskType - The type of the DatabaseTask, not null
configuration - The config, not null
sqlHandler - The sql handler, not null
Returns:
The configured instance


Copyright © 2011. All Rights Reserved.