public class ScalarTypeCurrency extends ScalarTypeBaseVarchar<Currency>
jdbcNative, jdbcType, type| Constructor and Description |
|---|
ScalarTypeCurrency() |
| Modifier and Type | Method and Description |
|---|---|
Currency |
convertFromDbString(String dbValue) |
String |
convertToDbString(Currency beanValue) |
String |
formatValue(Currency v)
Convert the type into a string representation.
|
int |
getLength()
Just return 0.
|
Currency |
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<Currency>getLength in class ScalarTypeBase<Currency>public Currency convertFromDbString(String dbValue)
convertFromDbString in class ScalarTypeBaseVarchar<Currency>public String convertToDbString(Currency beanValue)
convertToDbString in class ScalarTypeBaseVarchar<Currency>public String formatValue(Currency v)
ScalarTypeReciprocal of parse().
formatValue in interface ScalarType<Currency>formatValue in class ScalarTypeBaseVarchar<Currency>public Currency parse(String value)
ScalarTypeMostly used to support CSV, JSON and XML parsing.
Reciprocal of formatValue().
parse in interface StringParserparse in interface ScalarType<Currency>parse in class ScalarTypeBaseVarchar<Currency>Copyright © 2014. All Rights Reserved.