Uses of Interface
org.dbunit.dataset.IDataSet
Packages that use IDataSet
Package
Description
-
Uses of IDataSet in org.dbunit
Methods in org.dbunit that return IDataSetModifier and TypeMethodDescriptionAbstractDatabaseTester.getDataSet()protected abstract IDataSetDatabaseTestCase.getDataSet()Returns the test dataset.DefaultPrepAndExpectedTestCase.getDataSet()Returns the test dataset.IDatabaseTester.getDataSet()Returns the test dataset.DefaultPrepAndExpectedTestCase.getExpectedDataset()Get the expected dataset, created from the expectedDataFiles.PrepAndExpectedTestCase.getExpectedDataset()Get the expected dataset, created from the expectedDataFiles.DefaultPrepAndExpectedTestCase.getPrepDataset()Get the prep dataset, created from the prepDataFiles.PrepAndExpectedTestCase.getPrepDataset()Get the prep dataset, created from the prepDataFiles.DefaultPrepAndExpectedTestCase.makeCompositeDataSet(String[] dataFiles, String dataFilesName) Make aIDataSetfrom the specified files with case sensitive table names as false.DefaultPrepAndExpectedTestCase.makeCompositeDataSet(String[] dataFiles, String dataFilesName, boolean isCaseSensitiveTableNames) Make aIDataSetfrom the specified files.Methods in org.dbunit with parameters of type IDataSetModifier and TypeMethodDescriptionstatic voidAssertion.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts that the two specified datasets are equal.static voidAssertion.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified datasets are equal.static voidAssertion.assertEqualsByQuery(IDataSet expectedDataset, IDatabaseConnection connection, String sqlQuery, String tableName, String[] ignoreCols) Asserts that the specified dataset table matches the given query's result, ignoring the given columns.static voidAssertion.assertEqualsIgnoreCols(IDataSet expectedDataset, IDataSet actualDataset, String tableName, String[] ignoreCols) Asserts that the two specified datasets' tables are equal, ignoring the given columns.static voidAssertion.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts that the two specified datasets are equal, using the given value comparers.static voidAssertion.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts that the two specified datasets are equal, using the given value comparers.voidAbstractDatabaseTester.setDataSet(IDataSet dataSet) voidIDatabaseTester.setDataSet(IDataSet dataSet) Sets the test dataset to use.voidDefaultPrepAndExpectedTestCase.setExpectedDs(IDataSet expectedDataSet) Set the expectedDs.voidSet the prepDs.voidDefaultExpectedDataSetAndVerifyTableDefinitionVerifier.verify(VerifyTableDefinition[] verifyTableDefinitions, IDataSet expectedDataSet, DatabaseConfig config) voidExpectedDataSetAndVerifyTableDefinitionVerifier.verify(VerifyTableDefinition[] verifyTableDefinitions, IDataSet expectedDataSet, DatabaseConfig config) VerifyVerifyTableDefinitions and expectedDataSet configurations agree. -
Uses of IDataSet in org.dbunit.ant
Methods in org.dbunit.ant that return IDataSetModifier and TypeMethodDescriptionprotected IDataSetAbstractStep.getDatabaseDataSet(IDatabaseConnection connection, List tables) Builds a dataset from the given connection, restricted to the given tables and queries.protected IDataSetExport.getExportDataSet(IDatabaseConnection connection) Creates the dataset that is finally used for the exportprotected IDataSetAbstractStep.getSrcDataSet(File src, String format, boolean forwardonly) Loads a dataset from the given source file in the given format. -
Uses of IDataSet in org.dbunit.assertion
Methods in org.dbunit.assertion with parameters of type IDataSetModifier and TypeMethodDescriptionvoidDbUnitAssert.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts that the two specified dataset are equals.voidDbUnitAssert.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified dataset are equals.voidDbUnitAssert.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.voidDbUnitAssert.assertEqualsIgnoreCols(IDataSet expectedDataset, IDataSet actualDataset, String tableName, String[] ignoreCols) Compare one table present in two datasets ignoring specified columns.voidDbUnitAssertBase.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts the two specifiedIDataSets comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the specified failureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts the two specifiedIDataSets comparing their columns using the defaultValueComparerand handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer) Asserts the two specifiedIDataSets comparing their columns using the specified defaultValueComparer and handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts the two specifiedIDataSets comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the defaultFailureHandler.protected voidDbUnitAssert.compareTables(IDataSet expectedDataSet, IDataSet actualDataSet, String[] expectedNames, FailureHandler failureHandler) Asserts each expected table against its corresponding actual table, using the default equality-based value comparer.protected voidDbUnitAssertBase.compareTables(IDataSet expectedDataSet, IDataSet actualDataSet, String[] expectedNames, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts each expected table against its corresponding actual table.protected String[]DbUnitAssertBase.getSortedTableNames(IDataSet dataSet) Returns the table names of the given dataset, sorted and upper-cased unless the dataset is case-sensitive. -
Uses of IDataSet in org.dbunit.database
Classes in org.dbunit.database that implement IDataSetModifier and TypeClassDescriptionclassProvides access to a database instance as aIDataSet.classHolds collection of tables resulting from database query.Methods in org.dbunit.database that return IDataSetModifier and TypeMethodDescriptionAbstractDatabaseConnection.createDataSet()AbstractDatabaseConnection.createDataSet(String[] tableNames) IDatabaseConnection.createDataSet()Creates a dataset corresponding to the entire database.IDatabaseConnection.createDataSet(String[] tableNames) Creates a dataset containing only the specified tables from the database.Methods in org.dbunit.database with parameters of type IDataSetModifier and TypeMethodDescriptionConstructors in org.dbunit.database with parameters of type IDataSetModifierConstructorDescriptionDatabaseTableIterator(String[] tableNames, IDataSet dataSet) Creates an iterator over the given table names, resolved from the given dataset. -
Uses of IDataSet in org.dbunit.database.search
Methods in org.dbunit.database.search that return IDataSetModifier and TypeMethodDescriptionstatic IDataSetTablesDependencyHelper.getAllDataset(IDatabaseConnection connection, String rootTable, Set allowedPKs) Returns a dataset with the given root table plus every table that directly or transitively depends on or is depended on by it, filtered to the given allowed primary keys.static IDataSetTablesDependencyHelper.getAllDataset(IDatabaseConnection connection, PrimaryKeyFilter.PkTableMap rootTables) Returns a dataset with the given root tables plus every table that directly or transitively depends on or is depended on by them, filtered to the given allowed primary keys.static IDataSetTablesDependencyHelper.getDataset(IDatabaseConnection connection, String rootTable, Set allowedIds) Returns a dataset containing the given root table and all tables that depend on it, filtered to the given allowed primary key values of the root table.static IDataSetTablesDependencyHelper.getDataset(IDatabaseConnection connection, PrimaryKeyFilter.PkTableMap rootTables) Returns a dataset containing the given root tables and all tables that depend on them, filtered to the given allowed primary key values. -
Uses of IDataSet in org.dbunit.dataset
Classes in org.dbunit.dataset that implement IDataSetModifier and TypeClassDescriptionclassThis abstract class provides the basic implementation of the IDataSet interface.classHold copy of another dataset or a consumed provider content.classDeprecated.All IDataSet implementations are case insensitive since DbUnit 1.5 - may change again since tablenames on RDBMSes can be case sensitiveclassCombines multiple datasets into a single logical dataset.classSimple implementation of a dataset backed byITableobjects which can be added dynamically.classDecorates a dataset and exposes only some tables from it.classDecorator that allows forward only access to decorated dataset.classSpecialized IDataSet decorator that convert the table name and column names to lower case.classDecorator that replace configured values from the decorated dataset with replacement values.classDecorator that returns theITables of the decorated dataset asSortedTables.classDecorates a dataset to allow decorating the returnedITables (andITableMetaDatas, by extension).Methods in org.dbunit.dataset that return IDataSetModifier and TypeMethodDescriptionDataSetBuilder.build()Builds and returns anIDataSetcontaining all configured tables.DataSetBuilder.TableBuilder.build()Builds and returns anIDataSetcontaining all configured tables.Methods in org.dbunit.dataset with parameters of type IDataSetModifier and TypeMethodDescriptionstatic voidDataSetUtils.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) Deprecated.Use Assertion.assertEqualsstatic String[]DataSetUtils.getReverseTableNames(IDataSet dataSet) Returns the table names from the specified dataset in reverse order.static ITable[]Search and returns the specified tables from the specified dataSet.static ITable[]Returns the tables from the specified dataset.Constructors in org.dbunit.dataset with parameters of type IDataSetModifierConstructorDescriptionCachedDataSet(IDataSet dataSet) Creates a copy of the specified dataset.CaseInsensitiveDataSet(IDataSet dataSet) Deprecated.Creates a case-insensitive view of the given dataset.CompositeDataSet(IDataSet dataSet) Creates a composite dataset that combines duplicate tables of the specified dataset.CompositeDataSet(IDataSet[] dataSets) Creates a composite dataset that combines specified datasets.CompositeDataSet(IDataSet[] dataSets, boolean combine) Creates a composite dataset that combines specified datasets.CompositeDataSet(IDataSet[] dataSets, boolean combine, boolean caseSensitiveTableNames) Creates a composite dataset that combines specified datasets.CompositeDataSet(IDataSet dataSet, boolean combine) Deprecated.This constructor is useless when the combine parameter isfalse.CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2) Creates a composite dataset that combines the two specified datasets.CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2, boolean combine) Creates a composite dataset that combines the two specified datasets.FilteredDataSet(String[] tableNames, IDataSet dataSet) Creates a FilteredDataSet that decorates the specified dataset and exposes only the specified tables usingSequenceTableFilteras filtering strategy.FilteredDataSet(ITableFilter filter, IDataSet dataSet) Creates a FilteredDataSet that decorates the specified dataset and exposes only the tables allowed by the specified filter.ForwardOnlyDataSet(IDataSet dataSet) Creates a forward-only decorator over the given dataset.LowerCaseDataSet(IDataSet dataSet) Creates a dataset that lower-cases the table and column names of the given dataset.ReplacementDataSet(IDataSet dataSet) Create a new ReplacementDataSet object that decorates the specified dataset.ReplacementDataSet(IDataSet dataSet, Map objectMap, Map substringMap) Create a new ReplacementDataSet object that decorates the specified dataset.SortedDataSet(IDataSet dataSet) Creates a newSortedDataSetdecorating the given dataset.TableDecoratorDataSet(IDataSet dataSet, TableDecoratorDataSet.TableDecoratorFunction decoratorFunction) Creates a newTableDecoratorDataSetdecorating each table of the given dataset. -
Uses of IDataSet in org.dbunit.dataset.csv
Classes in org.dbunit.dataset.csv that implement IDataSetModifier and TypeClassDescriptionclassThis class constructs an IDataSet given a directory containing CSV files.classThis class constructs an IDataSet given a base URL containing CSV files.Methods in org.dbunit.dataset.csv with parameters of type IDataSet -
Uses of IDataSet in org.dbunit.dataset.excel
Classes in org.dbunit.dataset.excel that implement IDataSetModifier and TypeClassDescriptionclassThis dataset implementation can read and write MS Excel documents.Methods in org.dbunit.dataset.excel with parameters of type IDataSetModifier and TypeMethodDescriptionstatic voidXlsDataSet.write(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified Excel document.voidXlsDataSetWriter.write(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified Excel document. -
Uses of IDataSet in org.dbunit.dataset.filter
Methods in org.dbunit.dataset.filter with parameters of type IDataSetModifier and TypeMethodDescriptionString[]AbstractTableFilter.getTableNames(IDataSet dataSet) String[]ITableFilter.getTableNames(IDataSet dataSet) Returns the table names allowed by this filter from the specified dataset.String[]SequenceTableFilter.getTableNames(IDataSet dataSet) Returns iterator of tables allowed by this filter from the specified dataset.Constructors in org.dbunit.dataset.filter with parameters of type IDataSetModifierConstructorDescriptionSequenceTableIterator(String[] tableNames, IDataSet dataSet) Creates an iterator that returns the given dataset's tables in the given name order. -
Uses of IDataSet in org.dbunit.dataset.json
Classes in org.dbunit.dataset.json that implement IDataSetModifier and TypeClassDescriptionclassReads and writes flat JSON-based dataset documents.Methods in org.dbunit.dataset.json with parameters of type IDataSetModifier and TypeMethodDescriptionstatic voidJsonDataSet.write(IDataSet dataSet, OutputStream out) Writes the specified dataset to the given output stream as JSON, encoded in UTF-8, matching whatJsonProducerdecodes.static voidWrites the specified dataset to the given writer as JSON. -
Uses of IDataSet in org.dbunit.dataset.sqlloader
Classes in org.dbunit.dataset.sqlloader that implement IDataSetModifier and TypeClassDescriptionclassThis class constructs anIDataSetgiven a directory containing control files. -
Uses of IDataSet in org.dbunit.dataset.stream
Classes in org.dbunit.dataset.stream that implement IDataSetModifier and TypeClassDescriptionclassDataset that consumes producer asynchronously.Constructors in org.dbunit.dataset.stream with parameters of type IDataSetModifierConstructorDescriptionDataSetProducerAdapter(IDataSet dataSet) Creates a producer that reports the tables of the given dataset. -
Uses of IDataSet in org.dbunit.dataset.xml
Classes in org.dbunit.dataset.xml that implement IDataSetModifier and TypeClassDescriptionclassIDataSetbuilt by consuming table metadata declared in a flat DTD document.classReads and writes flat XML dataset document.classReads and writes original XML dataset document.Methods in org.dbunit.dataset.xml with parameters of type IDataSetModifier and TypeMethodDescriptionFlatXmlDataSetBuilder.setMetaDataSet(IDataSet metaDataSet) Set the metadata information (column info etc.) to be used.static voidFlatDtdDataSet.write(IDataSet dataSet, OutputStream out) Writes the specified dataset to the specified output stream as DTD, encoded in UTF-8, matching what theInputStreamconstructor's SAX parsing assumes absent an explicit encoding declaration.static voidWrite the specified dataset to the specified writer as DTD.voidWrites a DTD describing the given dataset's tables and columns.static voidFlatXmlDataSet.write(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified output stream as xml.static voidWrite the specified dataset to the specified writer as xml.static voidWrite the specified dataset to the specified writer as xml.voidWrites the givenIDataSetusing this writer.static voidXmlDataSet.write(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified output stream as xml.static voidXmlDataSet.write(IDataSet dataSet, OutputStream out, Charset charset) Write the specified dataset to the specified output stream as xml (using specified encoding).static voidWrite the specified dataset to the specified writer as xml.static voidWrite the specified dataset to the specified writer as xml.voidWrites the givenIDataSetusing this writer.static voidFlatXmlDataSet.writeDtd(IDataSet dataSet, OutputStream out) Constructors in org.dbunit.dataset.xml with parameters of type IDataSetModifierConstructorDescriptionFlatXmlDataSet(InputStream xmlStream, IDataSet metaDataSet) Deprecated.since 2.4.7 - useFlatXmlDataSetBuilderto create aFlatXmlDataSetFlatXmlDataSet(Reader xmlReader, IDataSet metaDataSet) Deprecated.since 2.4.7 - useFlatXmlDataSetBuilderto create aFlatXmlDataSetFlatXmlProducer(InputSource xmlSource, IDataSet metaDataSet) Creates a producer that reads the given XML source, using the given dataset as the source of metadata instead of parsing a DTD. -
Uses of IDataSet in org.dbunit.dataset.yaml
Classes in org.dbunit.dataset.yaml that implement IDataSetModifier and TypeClassDescriptionclassReads and writes flat YAML-based dataset documents.Methods in org.dbunit.dataset.yaml with parameters of type IDataSetModifier and TypeMethodDescriptionstatic voidYamlDataSet.write(IDataSet dataSet, OutputStream out) Writes the specified dataset to the specified output stream as YAML, encoded in UTF-8, matching whatYamlProducerdecodes.static voidWrite the specified dataset to the specified writer as YAML. -
Uses of IDataSet in org.dbunit.ext.mssql
Methods in org.dbunit.ext.mssql that return IDataSetModifier and TypeMethodDescriptionMsSqlConnection.createDataSet()MsSqlConnection.createDataSet(String[] tableNames) Methods in org.dbunit.ext.mssql with parameters of type IDataSetModifier and TypeMethodDescriptionvoidInsertIdentityOperation.execute(IDatabaseConnection connection, IDataSet dataSet) -
Uses of IDataSet in org.dbunit.operation
Methods in org.dbunit.operation with parameters of type IDataSetModifier and TypeMethodDescriptionvoidAbstractBatchOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidCloseConnectionOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidCompositeOperation.execute(IDatabaseConnection connection, IDataSet dataSet) abstract voidDatabaseOperation.execute(IDatabaseConnection connection, IDataSet dataSet) Executes this operation on the specified database using the specified dataset contents.voidDeleteAllOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidRefreshOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidTransactionOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidTruncateTableOperation.execute(IDatabaseConnection connection, IDataSet dataSet) protected ITableIteratorReturns list of tables this operation is applied to.protected ITableIterator -
Uses of IDataSet in org.dbunit.util.fileloader
Methods in org.dbunit.util.fileloader that return IDataSetModifier and TypeMethodDescriptionLoad the specified String filename from the classpath into a dbUnit dataset.Load the specified String filename from the classpath into a dbUnit dataset.CsvDataFileLoader.loadDataSet(URL url) Load the specified URL file into a dbUnit dataset.DataFileLoader.loadDataSet(URL url) Load the specified URL file into a dbUnit dataset.FlatXmlDataFileLoader.loadDataSet(URL url) Load the specified URL file into a dbUnit dataset.FullXmlDataFileLoader.loadDataSet(URL url) Load the specified URL file into a dbUnit dataset.XlsDataFileLoader.loadDataSet(URL url) Load the specified URL file into a dbUnit dataset.Methods in org.dbunit.util.fileloader with parameters of type IDataSetModifier and TypeMethodDescriptionprotected ReplacementDataSetAbstractDataFileLoader.processReplacementTokens(IDataSet ds) Add the replacements in the maps (objects and substrings) to the specified dataset.