org.unitils.dbmaintainer.util
Class DatabaseModuleConfigUtils
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DatabaseModuleConfigUtils
public DatabaseModuleConfigUtils()
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 nullconfiguration
- The config, not nullsqlHandler
- The sql handler, not null
- Returns:
- The configured instance
Copyright © 2011. All Rights Reserved.