Package org.dbunit.dataset.datatype
Class UnknownDataType
java.lang.Object
org.dbunit.dataset.datatype.DataType
org.dbunit.dataset.datatype.AbstractDataType
org.dbunit.dataset.datatype.UnknownDataType
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.dataset.datatype.DataType
BIGINT, BIGINT_AUX_LONG, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, NCHAR, NUMERIC, NVARCHAR, REAL, RELATIVE_DATE_TIME_PARSER, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR -
Method Summary
Methods inherited from class org.dbunit.dataset.datatype.AbstractDataType
areObjectsEqual, compareNonNulls, getSqlType, getSqlValue, getTypeClass, isDateTime, isNumber, loadClass, loadClass, setSqlValue, toStringMethods inherited from class org.dbunit.dataset.datatype.DataType
asString, forObject, forSqlType, forSqlTypeName, getSqlTypeName, isExtendedSyntax
-
Method Details
-
typeCast
Description copied from class:DataTypeReturns the specified value typecasted to thisDataType- Specified by:
typeCastin classDataType- Parameters:
value- the value to typecast.- Returns:
- the typecast value.
- Throws:
TypeCastException- if the value cannot be typecast to thisDataType.
-
compare
Description copied from class:DataTypeReturns 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:
comparein classAbstractDataType- Parameters:
o1- the first value to compare.o2- the second value to compare.- Returns:
- a negative integer, zero, or a positive integer as
o1is less than, equal to, or greater thano2. - Throws:
TypeCastException- if the arguments' types prevent them from being compared by this Comparator.
-