Modifier and Type | Method and Description |
---|---|
protected abstract IDatabaseConnection |
DatabaseTestCase.getConnection()
Returns the test database connection.
|
IDatabaseConnection |
JdbcDatabaseTester.getConnection() |
IDatabaseConnection |
JndiDatabaseTester.getConnection() |
IDatabaseConnection |
DefaultDatabaseTester.getConnection() |
IDatabaseConnection |
IDatabaseTester.getConnection()
Returns the test database connection.
|
IDatabaseConnection |
DataSourceDatabaseTester.getConnection() |
protected IDatabaseConnection |
DBTestCase.getConnection() |
Modifier and Type | Method and Description |
---|---|
static void |
Assertion.assertEqualsByQuery(IDataSet expectedDataset,
IDatabaseConnection connection,
String sqlQuery,
String tableName,
String[] ignoreCols) |
static void |
Assertion.assertEqualsByQuery(ITable expectedTable,
IDatabaseConnection connection,
String tableName,
String sqlQuery,
String[] ignoreCols) |
protected void |
DatabaseTestCase.closeConnection(IDatabaseConnection connection)
Deprecated.
since 2.4.4 define a user defined
DatabaseTestCase.getOperationListener() in advance |
void |
AbstractDatabaseTester.closeConnection(IDatabaseConnection connection) |
void |
IDatabaseTester.closeConnection(IDatabaseConnection connection)
Deprecated.
since 2.4.4 define a user defined
IDatabaseTester.setOperationListener(IOperationListener) in advance |
void |
IOperationListener.connectionRetrieved(IDatabaseConnection connection)
Is invoked immediately after a connection was newly created or an existing
connection is retrieved to do some work on it.
|
void |
DefaultOperationListener.connectionRetrieved(IDatabaseConnection connection) |
void |
IOperationListener.operationSetUpFinished(IDatabaseConnection connection)
Notification of the completion of the
IDatabaseTester.onSetup() method. |
void |
DefaultOperationListener.operationSetUpFinished(IDatabaseConnection connection) |
void |
IOperationListener.operationTearDownFinished(IDatabaseConnection connection)
Notification of the completion of the
IDatabaseTester.onTearDown() method
Should close the given connection if desired. |
void |
DefaultOperationListener.operationTearDownFinished(IDatabaseConnection connection) |
Constructor and Description |
---|
DefaultDatabaseTester(IDatabaseConnection connection)
Creates a new DefaultDatabaseTester with the supplied connection.
|
Modifier and Type | Method and Description |
---|---|
protected IDatabaseConnection |
DbUnitTask.createConnection() |
protected IDatabaseConnection |
DbUnitTask.createDatabaseConnection(Connection jdbcConnection,
String dbSchema)
Creates the dbunit connection using the two given arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
Export.execute(IDatabaseConnection connection) |
void |
Compare.execute(IDatabaseConnection connection) |
void |
Operation.execute(IDatabaseConnection connection) |
void |
DbUnitTaskStep.execute(IDatabaseConnection connection) |
protected IDataSet |
AbstractStep.getDatabaseDataSet(IDatabaseConnection connection,
List tables,
boolean forwardonly) |
protected IDataSet |
Export.getExportDataSet(IDatabaseConnection connection)
Creates the dataset that is finally used for the export
|
QueryDataSet |
QuerySet.getQueryDataSet(IDatabaseConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
DbUnitAssert.assertEqualsByQuery(IDataSet expectedDataset,
IDatabaseConnection connection,
String sqlQuery,
String tableName,
String[] ignoreCols)
Compare a table from a dataset with a table generated from an sql query.
|
void |
DbUnitAssert.assertEqualsByQuery(ITable expectedTable,
IDatabaseConnection connection,
String tableName,
String sqlQuery,
String[] ignoreCols)
Compare a table with a table generated from an sql query.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDatabaseConnection |
class |
DatabaseConnection
This class adapts a JDBC
Connection to a
IDatabaseConnection . |
class |
DatabaseDataSourceConnection
This class adapts a JDBC
DataSource to a
IDatabaseConnection . |
Modifier and Type | Method and Description |
---|---|
static ITableMetaData |
DatabaseTableMetaData.createMetaData(String tableName,
ResultSet resultSet,
IDatabaseConnection connection)
Deprecated.
|
IResultSetTable |
CachedResultSetTableFactory.createTable(ITableMetaData metaData,
IDatabaseConnection connection) |
IResultSetTable |
IResultSetTableFactory.createTable(ITableMetaData metaData,
IDatabaseConnection connection) |
IResultSetTable |
ForwardOnlyResultSetTableFactory.createTable(ITableMetaData metaData,
IDatabaseConnection connection) |
IResultSetTable |
CachedResultSetTableFactory.createTable(String tableName,
PreparedStatement preparedStatement,
IDatabaseConnection connection) |
IResultSetTable |
IResultSetTableFactory.createTable(String tableName,
PreparedStatement preparedStatement,
IDatabaseConnection connection)
Creates a table from a preparedStatement
|
IResultSetTable |
ForwardOnlyResultSetTableFactory.createTable(String tableName,
PreparedStatement preparedStatement,
IDatabaseConnection connection) |
IResultSetTable |
CachedResultSetTableFactory.createTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
IResultSetTable |
IResultSetTableFactory.createTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
IResultSetTable |
ForwardOnlyResultSetTableFactory.createTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
Constructor and Description |
---|
AbstractResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection) |
AbstractResultSetTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
AbstractResultSetTable(String tableName,
String selectStatement,
IDatabaseConnection connection,
boolean caseSensitiveTableNames) |
CachedResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection)
Deprecated.
since 2.4.4 prefer direct usage of
ForwardOnlyResultSetTable.ForwardOnlyResultSetTable(ITableMetaData, IDatabaseConnection) and then invoke CachedResultSetTable.CachedResultSetTable(IResultSetTable) |
DatabaseDataSet(IDatabaseConnection connection,
boolean caseSensitiveTableNames)
Creates a new database data set
|
DatabaseDataSet(IDatabaseConnection connection,
boolean caseSensitiveTableNames,
ITableFilterSimple tableFilter)
Creates a new database data set
|
DatabaseSequenceFilter(IDatabaseConnection connection)
Create a DatabaseSequenceFilter that exposes all the database tables.
|
DatabaseSequenceFilter(IDatabaseConnection connection,
String[] tableNames)
Create a DatabaseSequenceFilter that only exposes specified table names.
|
ForwardOnlyResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection) |
ForwardOnlyResultSetTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
PrimaryKeyFilter(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap allowedPKs,
boolean reverseDependency)
Default constructor, it takes as input a map with desired rows in a final
dataset; the filter will ensure that the rows necessary by these initial rows
are also allowed (and so on...).
|
QueryDataSet(IDatabaseConnection connection)
Create a QueryDataSet by passing in the connection to the database to use.
|
QueryDataSet(IDatabaseConnection connection,
boolean caseSensitiveTableNames)
Create a QueryDataSet by passing in the connection to the database to use.
|
QueryTableIterator(List tableEntries,
IDatabaseConnection connection) |
ResultSetTableMetaData(String tableName,
ResultSet resultSet,
IDatabaseConnection connection,
boolean caseSensitiveMetaData) |
ScrollableResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection) |
ScrollableResultSetTable(String tableName,
String selectStatement,
IDatabaseConnection connection) |
Modifier and Type | Method and Description |
---|---|
IDatabaseConnection |
AbstractMetaDataBasedSearchCallback.getConnection()
Get the connection where the edges will be calculated from.
|
Modifier and Type | Method and Description |
---|---|
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
String rootTable,
Set allowedPKs) |
static String[] |
TablesDependencyHelper.getAllDependentTables(IDatabaseConnection connection,
String rootTable)
Get the name of all tables that depend on a root table ( i.e, all tables whose PK
is a FK for the root table) and also the tables the root table depends on
(i.e., all tables which have a FK for the root table's PK).
|
static String[] |
TablesDependencyHelper.getAllDependentTables(IDatabaseConnection connection,
String[] rootTables)
Get the name of all tables that depend on the root tables ( i.e, all tables whose PK
is a FK for any of the root tables) and also the tables the root tables depends on
(i.e., all tables which have a FK for any of the root table's PK).
|
static IDataSet |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
String rootTable,
Set allowedIds) |
static String[] |
TablesDependencyHelper.getDependentTables(IDatabaseConnection connection,
String rootTable)
Get the name of all tables that depend on the root tables (i.e, all tables that have FKs
pointing to the PK of the root table).
|
static String[] |
TablesDependencyHelper.getDependentTables(IDatabaseConnection connection,
String[] rootTables)
Get the name of all tables that depend on the root tables (i.e, all tables that have FKs
pointing to the PK of one of the root tables).
|
static String[] |
TablesDependencyHelper.getDependsOnTables(IDatabaseConnection connection,
String rootTable)
Get the name of all tables that the given rootTable depends on (i.e, all tables whose PK is a FK for the root table).
|
static Set |
TablesDependencyHelper.getDirectDependentTables(IDatabaseConnection connection,
String tableName)
Returns a set of tables which directly depend on the given table.
|
static Set |
TablesDependencyHelper.getDirectDependsOnTables(IDatabaseConnection connection,
String tableName)
Returns a set of tables on which the given table directly depends on.
|
Constructor and Description |
---|
AbstractMetaDataBasedSearchCallback(IDatabaseConnection connection)
Default constructor.
|
ExportedKeysSearchCallback(IDatabaseConnection connection) |
ImportedAndExportedKeysSearchCallback(IDatabaseConnection connection) |
ImportedAndExportedKeysSearchCallbackFilteredByPKs(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap allowedPKs)
Default constructor.
|
ImportedKeysSearchCallback(IDatabaseConnection connection) |
ImportedKeysSearchCallbackFilteredByPKs(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap allowedPKs)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
IBatchStatement |
StatementFactory.createBatchStatement(IDatabaseConnection connection) |
IBatchStatement |
PreparedStatementFactory.createBatchStatement(IDatabaseConnection connection) |
IBatchStatement |
IStatementFactory.createBatchStatement(IDatabaseConnection connection) |
IPreparedBatchStatement |
StatementFactory.createPreparedBatchStatement(String sql,
IDatabaseConnection connection) |
IPreparedBatchStatement |
PreparedStatementFactory.createPreparedBatchStatement(String sql,
IDatabaseConnection connection) |
IPreparedBatchStatement |
IStatementFactory.createPreparedBatchStatement(String sql,
IDatabaseConnection connection) |
protected boolean |
AbstractStatementFactory.supportBatchStatement(IDatabaseConnection connection)
Returns
true if target database supports batch statement. |
Modifier and Type | Method and Description |
---|---|
IDataTypeFactory |
AbstractTableMetaData.getDataTypeFactory(IDatabaseConnection connection)
Validates and returns the datatype factory of the given connection
|
Modifier and Type | Class and Description |
---|---|
class |
Db2Connection
Database connection for DB2 that pre-configures all properties required to successfully
use dbunit with DB2.
|
Modifier and Type | Class and Description |
---|---|
class |
H2Connection |
Modifier and Type | Class and Description |
---|---|
class |
HsqldbConnection |
Modifier and Type | Class and Description |
---|---|
class |
MckoiConnection
Database connection for Mckoi that pre-configures all properties required to successfully
use dbunit with Mckoi.
|
Modifier and Type | Class and Description |
---|---|
class |
MsSqlConnection |
Modifier and Type | Method and Description |
---|---|
void |
InsertIdentityOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
Modifier and Type | Class and Description |
---|---|
class |
MySqlConnection |
Modifier and Type | Method and Description |
---|---|
void |
CompositeOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
DeleteAllOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
AbstractBatchOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
RefreshOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
TruncateTableOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
abstract void |
DatabaseOperation.execute(IDatabaseConnection connection,
IDataSet dataSet)
Executes this operation on the specified database using the specified
dataset contents.
|
void |
CloseConnectionOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
TransactionOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
OperationData |
UpdateOperation.getOperationData(ITableMetaData metaData,
BitSet ignoreMapping,
IDatabaseConnection connection) |
OperationData |
InsertOperation.getOperationData(ITableMetaData metaData,
BitSet ignoreMapping,
IDatabaseConnection connection) |
OperationData |
DeleteOperation.getOperationData(ITableMetaData metaData,
BitSet ignoreMapping,
IDatabaseConnection connection) |
protected String |
AbstractOperation.getQualifiedName(String prefix,
String name,
IDatabaseConnection connection) |
Copyright © 2002–2016. All rights reserved.