org.dbunit.dataset.datatype
Class UnknownDataType

java.lang.Object
  extended by org.dbunit.dataset.datatype.DataType
      extended by org.dbunit.dataset.datatype.AbstractDataType
          extended by org.dbunit.dataset.datatype.UnknownDataType

public class UnknownDataType
extends AbstractDataType

Version:
$Revision: 666 $
Author:
Manuel Laflamme

Field Summary
 
Fields inherited from class org.dbunit.dataset.datatype.DataType
BIGINT, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGVARBINARY, LONGVARCHAR, NUMERIC, REAL, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
 java.lang.Object typeCast(java.lang.Object value)
          Returns the specified value typecasted to this DataType
 
Methods inherited from class org.dbunit.dataset.datatype.AbstractDataType
getSqlType, getSqlValue, getTypeClass, isDateTime, isNumber, loadClass, setSqlValue, toString
 
Methods inherited from class org.dbunit.dataset.datatype.DataType
asString, forObject, forSqlType, forSqlTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

typeCast

public java.lang.Object typeCast(java.lang.Object value)
                          throws TypeCastException
Description copied from class: DataType
Returns the specified value typecasted to this DataType

Specified by:
typeCast in class DataType
Throws:
TypeCastException

compare

public int compare(java.lang.Object o1,
                   java.lang.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
Throws:
TypeCastException - if the arguments' types prevent them from being compared by this Comparator.


Copyright © 2002-2008. All Rights Reserved.