Class DbUnitAssert.ComparisonColumn

java.lang.Object
org.dbunit.assertion.DbUnitAssert.ComparisonColumn
Enclosing class:
DbUnitAssert

public static class DbUnitAssert.ComparisonColumn extends Object
Represents a single column to be used for the comparison of table data. It contains the DataType to be used for comparing the given column. This DataType matches the expected and actual column's datatype.
Since:
2.4.0
Version:
$Revision: 864 $ $Date: 2008-11-07 06:27:26 -0800 (Fri, 07 Nov 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
  • Constructor Details

    • ComparisonColumn

      public ComparisonColumn(String tableName, Column expectedColumn, Column actualColumn, FailureHandler failureHandler)
      Parameters:
      tableName - The table name which is only needed for debugging output.
      expectedColumn - The expected column needed to resolve the DataType to use for the actual comparison.
      actualColumn - The actual column needed to resolve the DataType to use for the actual comparison.
      failureHandler - The FailureHandler to be used when no datatype can be determined.
  • Method Details

    • getColumnName

      public String getColumnName()
      Returns:
      The column actually being compared.
    • getDataType

      public DataType getDataType()
      Returns:
      The DataType to use for the actual comparison.