public class UnknownDataType extends AbstractDataType
BIGINT, BIGINT_AUX_LONG, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, NCHAR, NUMERIC, NVARCHAR, REAL, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
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.
|
Object |
typeCast(Object value)
Returns the specified value typecasted to this
DataType |
areObjectsEqual, compareNonNulls, getSqlType, getSqlValue, getTypeClass, isDateTime, isNumber, loadClass, loadClass, setSqlValue, toString
asString, forObject, forSqlType, forSqlTypeName
public Object typeCast(Object value) throws TypeCastException
DataType
DataType
typeCast
in class DataType
TypeCastException
public int compare(Object o1, Object o2) throws TypeCastException
DataType
The two values are typecast to this DataType before being compared.
compare
in class AbstractDataType
TypeCastException
- if the arguments' types prevent them from
being compared by this Comparator.Copyright © 2002–2020. All rights reserved.