public class ScalarTypeLocale extends ScalarTypeBaseVarchar<Locale>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeLocale() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
convertFromDbString(String dbValue) |
String |
convertToDbString(Locale beanValue) |
String |
formatValue(Locale t)
Convert the type into a string representation.
|
int |
getLength()
Just return 0.
|
Locale |
parse(String value)
Convert the string value to the appropriate java object.
|
bind, format, isDateTimeCapable, jsonFromString, jsonWrite, parseDateTime, read, readData, toBeanType, toJdbcType, toJsonString, writeDataaccumulateScalarTypes, getDbNullValue, getJdbcType, getType, isDbNull, isJdbcNative, jsonToString, loadIgnorepublic int getLength()
ScalarTypeBasegetLength in interface ScalarType<Locale>getLength in class ScalarTypeBase<Locale>public Locale convertFromDbString(String dbValue)
convertFromDbString in class ScalarTypeBaseVarchar<Locale>public String convertToDbString(Locale beanValue)
convertToDbString in class ScalarTypeBaseVarchar<Locale>public String formatValue(Locale t)
ScalarTypeReciprocal of parse().
formatValue in interface ScalarType<Locale>formatValue in class ScalarTypeBaseVarchar<Locale>public Locale parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
parse in interface StringParserparse in interface ScalarType<Locale>parse in class ScalarTypeBaseVarchar<Locale>Copyright © 2014. All Rights Reserved.