|
||||||||||
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 Properties |
configuration
The unitils configuration |
protected 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(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)
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 Properties configuration
protected SQLHandler sqlHandler
protected DbSupport defaultDbSupport
protected List<DbSupport> dbSupports
Constructor Detail |
---|
public BaseDatabaseAccessor()
Method Detail |
---|
public void init(Properties configuration, SQLHandler sqlHandler)
Properties
, DataSource
.
init
in interface DatabaseAccessing
configuration
- The configuration, not nullsqlHandler
- The sql handler, not nullprotected void doInit(Properties configuration)
configuration
- The configuration, not nullpublic DbSupport getDbSupport(String schemaName)
schemaName
- The schema, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |