Class UnknownDataType


public class UnknownDataType extends AbstractDataType
DataType fallback used for SQL types that DbUnit does not otherwise recognize, mapped to Object.
Version:
$Revision$
Author:
Manuel Laflamme
  • Method Details

    • typeCast

      public Object typeCast(Object value) throws TypeCastException
      Description copied from class: DataType
      Returns the specified value typecasted to this DataType
      Specified by:
      typeCast in class DataType
      Parameters:
      value - the value to typecast.
      Returns:
      the typecast value.
      Throws:
      TypeCastException - if the value cannot be typecast to this DataType.
    • compare

      public int compare(Object o1, Object o2) throws TypeCastException
      Description copied from class: DataType
      Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

      The two values are typecast to this DataType before being compared.

      Overrides:
      compare in class AbstractDataType
      Parameters:
      o1 - the first value to compare.
      o2 - the second value to compare.
      Returns:
      a negative integer, zero, or a positive integer as o1 is less than, equal to, or greater than o2.
      Throws:
      TypeCastException - if the arguments' types prevent them from being compared by this Comparator.