|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbmaintainer.util.BaseDatabaseAccessor
public abstract class BaseDatabaseAccessor
Base class for implementations that access the test database
| Field Summary | |
|---|---|
protected java.util.Properties |
configuration
The unitils configuration |
protected java.util.List<DbSupport> |
dbSupports
DbSupport for all schemas |
protected DbSupport |
defaultDbSupport
DbSupport for the default schema |
protected SQLHandler |
sqlHandler
Provides connections to the unit test database |
| Constructor Summary | |
|---|---|
BaseDatabaseAccessor()
|
|
| Method Summary | |
|---|---|
protected void |
doInit(java.util.Properties configuration)
Allows subclasses to perform some extra configuration using the given configuration. |
DbSupport |
getDbSupport(java.lang.String schemaName)
Gets the db support for the given schema. |
void |
init(java.util.Properties configuration,
SQLHandler sqlHandler)
Initializes the database operation class with the given Properties, DataSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Properties configuration
protected SQLHandler sqlHandler
protected DbSupport defaultDbSupport
protected java.util.List<DbSupport> dbSupports
| Constructor Detail |
|---|
public BaseDatabaseAccessor()
| Method Detail |
|---|
public void init(java.util.Properties configuration,
SQLHandler sqlHandler)
Properties, DataSource.
init in interface DatabaseAccessingconfiguration - The configuration, not nullsqlHandler - The sql handler, not nullprotected void doInit(java.util.Properties configuration)
configuration - The configuration, not nullpublic DbSupport getDbSupport(java.lang.String schemaName)
schemaName - The schema, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||