Class TableColumnValueComparerMapBuilder
java.lang.Object
org.dbunit.assertion.comparer.value.builder.TableColumnValueComparerMapBuilder
Convenience methods to help build the map of table name -> map of column name
->
ValueComparer.- Since:
- 2.6.0
- Author:
- Jeff Jensen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String tableName, String columnName, ValueComparer valueComparer) Add a table to column toValueComparermapping.add(String tableName, Map<String, ValueComparer> columnValueComparers) Add all mappings from the specified column map to a column map for the specified table in this builder.add(String tableName, ColumnValueComparerMapBuilder columnValueComparerMapBuilder) Add all mappings from the specifiedColumnValueComparerMapBuilderbuilder to a column map for the specified table in this builder.Add all mappings from the specified table map to this builder.add(TableColumnValueComparerMapBuilder tableColumnValueComparerMapBuilder) Add all mappings from the specifiedTableColumnValueComparerMapBuilderbuilder to this builder.build()protected Map<String, ValueComparer> findOrMakeColumnMap(String tableName) protected Map<String, ValueComparer>
-
Constructor Details
-
TableColumnValueComparerMapBuilder
public TableColumnValueComparerMapBuilder()
-
-
Method Details
-
add
public TableColumnValueComparerMapBuilder add(Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Add all mappings from the specified table map to this builder.- Returns:
- this for fluent syntax.
-
add
public TableColumnValueComparerMapBuilder add(TableColumnValueComparerMapBuilder tableColumnValueComparerMapBuilder) Add all mappings from the specifiedTableColumnValueComparerMapBuilderbuilder to this builder.- Returns:
- this for fluent syntax.
-
add
public TableColumnValueComparerMapBuilder add(String tableName, Map<String, ValueComparer> columnValueComparers) Add all mappings from the specified column map to a column map for the specified table in this builder.- Returns:
- this for fluent syntax.
-
add
public TableColumnValueComparerMapBuilder add(String tableName, ColumnValueComparerMapBuilder columnValueComparerMapBuilder) Add all mappings from the specifiedColumnValueComparerMapBuilderbuilder to a column map for the specified table in this builder.- Returns:
- this for fluent syntax.
-
add
public TableColumnValueComparerMapBuilder add(String tableName, String columnName, ValueComparer valueComparer) Add a table to column toValueComparermapping.- Returns:
- this for fluent syntax.
-
build
- Returns:
- The unmodifiable assembled map.
-
findOrMakeColumnMap
-
makeColumnToValueComparerMap
-