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