public abstract class BaseDatabaseAccessor extends Object implements DatabaseAccessing
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
configuration
The unitils configuration
|
protected List<DbSupport> |
dbSupports
DbSupport for all schemas
|
protected DbSupport |
defaultDbSupport
DbSupport for the default schema
|
protected String |
dialect |
protected SQLHandler |
sqlHandler
Provides connections to the unit test database
|
| Constructor and Description |
|---|
BaseDatabaseAccessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit(Properties configuration)
Allows subclasses to perform some extra configuration using the given configuration.
|
DbSupport |
getDbSupport(String schemaName)
Gets the db support for the given schema.
|
void |
init(Properties configuration,
SQLHandler sqlHandler,
String dialect,
List<String> schemaNames)
Initializes the database operation class with the given
Properties, DataSource. |
protected Properties configuration
protected SQLHandler sqlHandler
protected DbSupport defaultDbSupport
protected String dialect
public void init(Properties configuration, SQLHandler sqlHandler, String dialect, List<String> schemaNames)
Properties, DataSource.init in interface DatabaseAccessingconfiguration - The configuration, not nullsqlHandler - The sql handler, not nullprotected void doInit(Properties configuration)
configuration - The configuration, not nullCopyright © 2016. All Rights Reserved.