public class UuidAwareBytesDataType extends BytesDataType
A datatype that is capable of storing UUIDs into BINARY fields (big-endian).
For the UUID to be detected as such, the string value of the field has to be
in the form of uuid'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
, where the
x's are the actual string value of the UUID, hex-encoded. Example:
<company id="uuid'791ae85a-d8d0-11e2-8c43-50e549c9b654'" name="ACME"/>
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 |
---|---|
Object |
typeCast(Object value)
Casts the given value into a byte[] using different strategies.
|
compare, compareNonNulls, getSqlValue, setSqlValue
areObjectsEqual, compare, getSqlType, getTypeClass, isDateTime, isNumber, loadClass, loadClass, toString
asString, forObject, forSqlType, forSqlTypeName
public Object typeCast(Object value) throws TypeCastException
BytesDataType
typeCast
in class BytesDataType
TypeCastException
DataType.typeCast(java.lang.Object)
Copyright © 2002–2018. All rights reserved.