public class BigDecimalStringConverter extends Object implements TypeConverter<BigDecimal,String>
Constructor and Description |
---|
BigDecimalStringConverter() |
Modifier and Type | Method and Description |
---|---|
String |
toDatastoreType(BigDecimal bd)
Method to convert the passed member value to the datastore type.
|
BigDecimal |
toMemberType(String str)
Method to convert the passed datastore value to the member type.
|
public BigDecimal toMemberType(String str)
TypeConverter
toMemberType
in interface TypeConverter<BigDecimal,String>
str
- Value from the datastorepublic String toDatastoreType(BigDecimal bd)
TypeConverter
toDatastoreType
in interface TypeConverter<BigDecimal,String>
bd
- Value from the memberCopyright © 2018. All rights reserved.