A B C D E F G I O P R S T U V W

A

activateTransactionIfNeeded() - Method in class org.unitils.database.DatabaseModule
 
activateTransactionIfNeeded(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
activateTransactionIfNeeded(Object) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
 
afterInit() - Method in class org.unitils.database.DatabaseModule
Initializes the spring support object
afterTestTearDown(Object, Method) - Method in class org.unitils.database.DatabaseModule.DatabaseTestListener
 
assertCountSqlResult(String, Long) - Static method in class org.unitils.database.sqlassert.SqlAssert
The SQL given should only return one row with one column, this column should be a number (preferred a count(*)).
assertCountSqlResult(String, DataSource, Long) - Static method in class org.unitils.database.sqlassert.SqlAssert
The SQL given should only return one row with one column, this column should be a number (preferred a count(*)).
assertMultipleRowSqlResult(String, String[]...) - Static method in class org.unitils.database.sqlassert.SqlAssert
To be succesfull the result of the SQL should return as many rows as the two dimensional arrey has, each row should be identical to the given parameter.
assertMultipleRowSqlResult(String, DataSource, String[]...) - Static method in class org.unitils.database.sqlassert.SqlAssert
To be successful the result of the SQL should return as many rows as the two dimensional array has, each row should be identical to the given parameter.
assertSingleRowSqlResult(String, String[]) - Static method in class org.unitils.database.sqlassert.SqlAssert
To be succesfull the result of the SQL should only return one row, this row should be identical to the given parameter.
assertSingleRowSqlResult(String, DataSource, String[]) - Static method in class org.unitils.database.sqlassert.SqlAssert
To be successful the result of the SQL should only return one row, this row should be identical to the given parameter.

B

beforeTestSetUp(Object, Method) - Method in class org.unitils.database.DatabaseModule.DatabaseTestListener
 

C

cleanSchemas() - Method in class org.unitils.database.DatabaseModule
Cleans all configured schema's.
cleanSchemas() - Static method in class org.unitils.database.DatabaseUnitils
Cleans all configured schema's.
clearSchemas() - Method in class org.unitils.database.DatabaseModule
Clears all configured schema's.
clearSchemas() - Static method in class org.unitils.database.DatabaseUnitils
Clears all configured schema's.
commit(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Commits the transaction.
commit(Object) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
Commits the currently active transaction.
commitTransaction(Object) - Method in class org.unitils.database.DatabaseModule
Commits the current transaction.
commitTransaction() - Static method in class org.unitils.database.DatabaseUnitils
Commits the current unitils transaction
configuration - Variable in class org.unitils.database.DatabaseModule
The configuration of Unitils
createDataSource() - Method in interface org.unitils.database.config.DataSourceFactory
Creates a new DataSource
createDataSource() - Method in class org.unitils.database.config.PropertiesDataSourceFactory
 
createDataSource() - Method in class org.unitils.database.DatabaseModule
Creates a datasource by using the factory that is defined by the dataSourceFactory.className property
createTransactionDefinition(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Returns a TransactionDefinition object containing the necessary transaction parameters.

D

DatabaseModule - Class in org.unitils.database
Module that provides support for database testing: Creation of a datasource that connects to the test database, support for executing tests in a transaction and automatic maintenance of the test database.
DatabaseModule() - Constructor for class org.unitils.database.DatabaseModule
 
DatabaseModule.DatabaseTestListener - Class in org.unitils.database
The TestListener for this module
DatabaseModule.DatabaseTestListener() - Constructor for class org.unitils.database.DatabaseModule.DatabaseTestListener
 
DatabaseUnitils - Class in org.unitils.database
Class providing access to the functionality of the database module using static methods.
DatabaseUnitils() - Constructor for class org.unitils.database.DatabaseUnitils
 
dataSource - Variable in class org.unitils.database.DatabaseModule
The datasources with the name as key
DataSourceFactory - Interface in org.unitils.database.config
Defines the contract of a factory that can provide an instance of a test DataSource.
defaultAnnotationPropertyValues - Variable in class org.unitils.database.DatabaseModule
Map holding the default configuration of the database module annotations
DefaultUnitilsTransactionManager - Class in org.unitils.database.transaction.impl
Implements transactions for unit tests, by delegating to a spring PlatformTransactionManager.
DefaultUnitilsTransactionManager() - Constructor for class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
disableConstraints() - Method in class org.unitils.database.DatabaseModule
Disables all foreigh key and not-null constraints on the configured schema's.
disableConstraints() - Static method in class org.unitils.database.DatabaseUnitils
Disables all foreign key and not-null constraints on the configured schema's.
doStartTransaction(Object, UnitilsTransactionManagementConfiguration) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 

E

endTransactionForTestMethod(Object, Method) - Method in class org.unitils.database.DatabaseModule
Commits or rollbacks the current transaction, if transactions are enabled and a transactionManager is active for the given testObject
executeUpdate(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Executes the given update statement.
executeUpdateQuietly(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Executes the given statement ignoring all exceptions.

F

Flushable - Interface in org.unitils.database.util
Marks a module as being flushable.
flushDatabaseUpdates(Object) - Method in class org.unitils.database.DatabaseModule
Flushes all pending updates to the database.
flushDatabaseUpdates() - Static method in class org.unitils.database.DatabaseUnitils
Flushes all pending updates to the database.
flushDatabaseUpdates(Object) - Method in interface org.unitils.database.util.Flushable
Flush all cached database operations.

G

generateDatasetDefinition() - Method in class org.unitils.database.DatabaseModule
Generates a definition file that defines the structure of dataset's, i.e. a XSD of DTD that describes the structure of the database.
generateDatasetDefinition() - Static method in class org.unitils.database.DatabaseUnitils
Generates a definition file that defines the structure of dataset's, i.e. a XSD of DTD that describes the structure of the database.
getConfiguredDatabaseTaskInstance(Class<T>) - Method in class org.unitils.database.DatabaseModule
 
getDataSource() - Method in class org.unitils.database.DatabaseModule
 
getDataSource() - Static method in class org.unitils.database.DatabaseUnitils
Returns the DataSource that connects to the test database
getDataSourceAndActivateTransactionIfNeeded() - Method in class org.unitils.database.DatabaseModule
Returns the DataSource that provides connection to the unit test database.
getDefaultSqlHandler() - Method in class org.unitils.database.DatabaseModule
 
getItemAsLong(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Returns the long extracted from the result of the given query.
getItemAsString(String, DataSource, Integer) - Static method in class org.unitils.database.sqlassert.SqlAssert
Returns the value extracted from the result of the given query.
getItemAsString(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Returns the value extracted from the result of the given query.
getItemsAsStringSet(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Returns the items extracted from the result of the given query.
getNewDataSource() - Method in class org.unitils.database.config.PropertiesDataSourceFactory
Returns a concrete instance of BasicDataSource.
getObject() - Method in class org.unitils.database.UnitilsDataSourceFactoryBean
Gets the data source instance.
getObjectType() - Method in class org.unitils.database.UnitilsDataSourceFactoryBean
Gets the type of the object provided by this FactoryBean, i.e.
getPreference() - Method in interface org.unitils.database.transaction.impl.UnitilsTransactionManagementConfiguration
 
getSpringPlatformTransactionManager(Object) - Method in interface org.unitils.database.transaction.impl.UnitilsTransactionManagementConfiguration
Returns a PlatformTransactionManager that can provide transactional behavior for the given test object.
getTestListener() - Method in class org.unitils.database.DatabaseModule
 
getTestObject() - Method in class org.unitils.database.DatabaseModule
 
getTransactionalDataSource(DataSource) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Returns the given datasource, wrapped in a spring TransactionAwareDataSourceProxy
getTransactionalDataSource(DataSource) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
Wraps the given DataSource in a transactional proxy.
getTransactionalDataSourceAndActivateTransactionIfNeeded(Object) - Method in class org.unitils.database.DatabaseModule
Returns the DataSource that provides connection to the unit test database.
getTransactionManagementConfiguration(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
getTransactionManager() - Method in class org.unitils.database.DatabaseModule
Returns the transaction manager or creates one if it does not exist yet.
getTransactionMode(Object, Method) - Method in class org.unitils.database.DatabaseModule
 

I

init(Properties) - Method in class org.unitils.database.config.PropertiesDataSourceFactory
Initializes itself using the properties in the given Properties object.
init(Properties) - Method in class org.unitils.database.DatabaseModule
Initializes this module using the given Configuration
init(Set<UnitilsTransactionManagementConfiguration>) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
init(Set<UnitilsTransactionManagementConfiguration>) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
Initialize the transaction manager
injectDataSource(Object) - Method in class org.unitils.database.DatabaseModule
Assigns the TestDataSource to every field annotated with TestDataSource and calls all methods annotated with TestDataSource
isApplicableFor(Object) - Method in interface org.unitils.database.transaction.impl.UnitilsTransactionManagementConfiguration
 
isDataSourceLoaded() - Method in class org.unitils.database.DatabaseModule
 
isEmpty(String, DataSource) - Static method in class org.unitils.database.SQLUnitils
Utility method to check whether the given table is empty.
isSingleton() - Method in class org.unitils.database.UnitilsDataSourceFactoryBean
 
isTransactionalResourceAvailable(Object) - Method in interface org.unitils.database.transaction.impl.UnitilsTransactionManagementConfiguration
 
isTransactionsEnabled(Object, Method) - Method in class org.unitils.database.DatabaseModule
 

O

org.unitils.database - package org.unitils.database
 
org.unitils.database.annotations - package org.unitils.database.annotations
 
org.unitils.database.config - package org.unitils.database.config
 
org.unitils.database.sqlassert - package org.unitils.database.sqlassert
 
org.unitils.database.transaction - package org.unitils.database.transaction
 
org.unitils.database.transaction.impl - package org.unitils.database.transaction.impl
 
org.unitils.database.util - package org.unitils.database.util
 

P

PropertiesDataSourceFactory - Class in org.unitils.database.config
A DataSourceFactory that loads the necessary information from a properties file.
PropertiesDataSourceFactory() - Constructor for class org.unitils.database.config.PropertiesDataSourceFactory
 
PROPERTY_UPDATEDATABASESCHEMA_ENABLED - Static variable in class org.unitils.database.DatabaseModule
Property indicating if the database schema should be updated before performing the tests
PROPERTY_WRAP_DATASOURCE_IN_TRANSACTIONAL_PROXY - Static variable in class org.unitils.database.DatabaseModule
Property indicating whether the datasource injected onto test fields annotated with @TestDataSource or retrieved using DatabaseModule.getTransactionalDataSourceAndActivateTransactionIfNeeded(Object) must be wrapped in a transactional proxy
PROPKEY_DATASOURCE_DRIVERCLASSNAME - Static variable in class org.unitils.database.config.PropertiesDataSourceFactory
 
PROPKEY_DATASOURCE_PASSWORD - Static variable in class org.unitils.database.config.PropertiesDataSourceFactory
 
PROPKEY_DATASOURCE_URL - Static variable in class org.unitils.database.config.PropertiesDataSourceFactory
 
PROPKEY_DATASOURCE_USERNAME - Static variable in class org.unitils.database.config.PropertiesDataSourceFactory
 

R

registerTransactionManagementConfiguration(UnitilsTransactionManagementConfiguration) - Method in class org.unitils.database.DatabaseModule
 
resetDatabaseState() - Method in class org.unitils.database.DatabaseModule
Updates the database version to the current version, without issuing any other update to the database.
resetDatabaseState(SQLHandler) - Method in class org.unitils.database.DatabaseModule
Updates the database version to the current version, without issuing any other updates to the database.
resetDatabaseState() - Static method in class org.unitils.database.DatabaseUnitils
Updates the database version to the current version, without issuing any other updates to the database.
rollback(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Rolls back the transaction.
rollback(Object) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
Rolls back the currently active transaction.
rollbackTransaction(Object) - Method in class org.unitils.database.DatabaseModule
Performs a rollback of the current transaction
rollbackTransaction() - Static method in class org.unitils.database.DatabaseUnitils
Performs a rollback of the current unitils transaction

S

setTransactionManagementConfigurations(Set<UnitilsTransactionManagementConfiguration>) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
SqlAssert - Class in org.unitils.database.sqlassert
Assertion class to verify content in the database, by specifying your own SQL and checking the result.
SqlAssert() - Constructor for class org.unitils.database.sqlassert.SqlAssert
 
SQLUnitils - Class in org.unitils.database
Utilities for executing statements and queries.
SQLUnitils() - Constructor for class org.unitils.database.SQLUnitils
 
startTransaction(Object) - Method in class org.unitils.database.DatabaseModule
Starts a new transaction on the transaction manager configured in unitils
startTransaction() - Static method in class org.unitils.database.DatabaseUnitils
Starts a new transaction on the transaction manager configured in unitils
startTransaction(Object) - Method in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Starts the transaction.
startTransaction(Object) - Method in interface org.unitils.database.transaction.UnitilsTransactionManager
Starts a transaction.
startTransactionForTestMethod(Object, Method) - Method in class org.unitils.database.DatabaseModule
Starts a transaction.

T

TestDataSource - Annotation Type in org.unitils.database.annotations
Annotation indicating that this field or method should be initialized with the DataSource that supplies a connection to the unit test database.
testObjectPlatformTransactionManagerMap - Variable in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
ThreadLocal for holding the PlatformTransactionManager that is used by the current test
testObjectTransactionActiveMap - Variable in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
 
testObjectTransactionStatusMap - Variable in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
ThreadLocal for holding the TransactionStatus that keeps track of the current test's transaction status
Transactional - Annotation Type in org.unitils.database.annotations
Annotation enabling to specify if tests should be run in a transaction and, if yes, whether at the end of the test, the transaction should be committed or rollbacked.
transactionManagementConfigurations - Variable in class org.unitils.database.DatabaseModule
Set of possible providers of a spring PlatformTransactionManager
transactionManagementConfigurations - Variable in class org.unitils.database.transaction.impl.DefaultUnitilsTransactionManager
Set of possible providers of a spring PlatformTransactionManager, not null
transactionManager - Variable in class org.unitils.database.DatabaseModule
The transaction manager
TransactionMode - Enum in org.unitils.database.util
Defining the available transaction modes for a test.

U

UnitilsDataSourceFactoryBean - Class in org.unitils.database
Spring FactoryBean that provides access to the datasource configured in unitils.
UnitilsDataSourceFactoryBean() - Constructor for class org.unitils.database.UnitilsDataSourceFactoryBean
 
UnitilsTransactionManagementConfiguration - Interface in org.unitils.database.transaction.impl
Defines the contract for suppliers of a spring PlatformTransactionManager of a specific subtype, suitable for a given test object.
UnitilsTransactionManager - Interface in org.unitils.database.transaction
Defines the contract for implementations that enable unit tests managed by unitils to be executed in a transaction.
updateDatabase() - Method in class org.unitils.database.DatabaseModule
Determines whether the test database is outdated and, if this is the case, updates the database with the latest changes.
updateDatabase(SQLHandler) - Method in class org.unitils.database.DatabaseModule
Determines whether the test database is outdated and, if that is the case, updates the database with the latest changes.
updateDatabase() - Static method in class org.unitils.database.DatabaseUnitils
Determines whether the test database is outdated and, if that is the case, updates the database with the latest changes.
updateDatabaseSchemaEnabled - Variable in class org.unitils.database.DatabaseModule
Indicates if the DBMaintainer should be invoked to update the database
updateSequences() - Method in class org.unitils.database.DatabaseModule
Updates all sequences that have a value below a certain configurable treshold to become equal to this treshold
updateSequences() - Static method in class org.unitils.database.DatabaseUnitils
Updates all sequences that have a value below a certain configurable treshold to become equal to this treshold

V

valueOf(String) - Static method in enum org.unitils.database.util.TransactionMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.unitils.database.util.TransactionMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

wrapDataSourceInTransactionalProxy - Variable in class org.unitils.database.DatabaseModule
Indicates whether the datasource injected onto test fields annotated with @TestDataSource or retrieved using DatabaseModule.getTransactionalDataSourceAndActivateTransactionIfNeeded(java.lang.Object) must be wrapped in a transactional proxy

A B C D E F G I O P R S T U V W

Copyright © 2011. All Rights Reserved.