public class ScalarTypeUUID extends ScalarTypeBaseVarchar<UUID>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeUUID() |
| Modifier and Type | Method and Description |
|---|---|
UUID |
convertFromDbString(String dbValue) |
String |
convertToDbString(UUID beanValue) |
String |
formatValue(UUID v)
Convert the type into a string representation.
|
int |
getLength()
Just return 0.
|
UUID |
parse(String value)
Convert the string value to the appropriate java object.
|
UUID |
toBeanType(Object value)
Convert the value as necessary to the logical Bean type.
|
Object |
toJdbcType(Object value)
Convert the value as necessary to the JDBC type.
|
bind, format, isDateTimeCapable, jsonFromString, jsonWrite, parseDateTime, read, readData, toJsonString, writeDataaccumulateScalarTypes, getDbNullValue, getJdbcType, getType, isDbNull, isJdbcNative, jsonToString, loadIgnorepublic int getLength()
ScalarTypeBasegetLength in interface ScalarType<UUID>getLength in class ScalarTypeBase<UUID>public UUID convertFromDbString(String dbValue)
convertFromDbString in class ScalarTypeBaseVarchar<UUID>public String convertToDbString(UUID beanValue)
convertToDbString in class ScalarTypeBaseVarchar<UUID>public UUID toBeanType(Object value)
ScalarTypeThe type as per the bean property.
This is used to automatically convert id values (typically from a string to a int, long or UUID).
toBeanType in interface ScalarType<UUID>toBeanType in class ScalarTypeBaseVarchar<UUID>public Object toJdbcType(Object value)
ScalarTypeNote that this should also match the type as per the getJdbcType() method.
This is typically used when the matching type is used in a where clause and we use this to ensure it is an appropriate jdbc type.
toJdbcType in interface ScalarType<UUID>toJdbcType in class ScalarTypeBaseVarchar<UUID>public String formatValue(UUID v)
ScalarTypeReciprocal of parse().
formatValue in interface ScalarType<UUID>formatValue in class ScalarTypeBaseVarchar<UUID>public UUID parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
parse in interface StringParserparse in interface ScalarType<UUID>parse in class ScalarTypeBaseVarchar<UUID>Copyright © 2014. All Rights Reserved.