Package org.dbunit.dataset.datatype
Class UuidAwareBytesDataType
java.lang.Object
org.dbunit.dataset.datatype.DataType
org.dbunit.dataset.datatype.AbstractDataType
org.dbunit.dataset.datatype.BytesDataType
org.dbunit.dataset.datatype.UuidAwareBytesDataType
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"/>
- Author:
- Timur Strekalov
-
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.BytesDataType
compare, compareNonNulls, getSqlValue, loadFile, loadURL, setSqlValueMethods inherited from class org.dbunit.dataset.datatype.AbstractDataType
areObjectsEqual, compare, getSqlType, getTypeClass, isDateTime, isNumber, loadClass, loadClass, toStringMethods inherited from class org.dbunit.dataset.datatype.DataType
asString, forObject, forSqlType, forSqlTypeName, getSqlTypeName, isExtendedSyntax
-
Method Details
-
typeCast
Description copied from class:BytesDataTypeCasts the given value into a byte[] using different strategies. Note that this might sometimes result in undesired behavior when character data (Strings) are used.- Overrides:
typeCastin classBytesDataType- Throws:
TypeCastException- See Also:
-