Class BigDecimalDoubleConverter
- java.lang.Object
-
- org.datanucleus.store.types.converters.BigDecimalDoubleConverter
-
- All Implemented Interfaces:
java.io.Serializable,TypeConverter<java.math.BigDecimal,java.lang.Double>
public class BigDecimalDoubleConverter extends java.lang.Object implements TypeConverter<java.math.BigDecimal,java.lang.Double>
Class to handle the conversion between java.math.BigDecimal and a Double form.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description BigDecimalDoubleConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoubletoDatastoreType(java.math.BigDecimal bd)Method to convert the passed member value to the datastore type.java.math.BigDecimaltoMemberType(java.lang.Double val)Method to convert the passed datastore value to the member type.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
toMemberType
public java.math.BigDecimal toMemberType(java.lang.Double val)
Description copied from interface:TypeConverterMethod to convert the passed datastore value to the member type.- Specified by:
toMemberTypein interfaceTypeConverter<java.math.BigDecimal,java.lang.Double>- Parameters:
val- Value from the datastore- Returns:
- Value for the member
-
toDatastoreType
public java.lang.Double toDatastoreType(java.math.BigDecimal bd)
Description copied from interface:TypeConverterMethod to convert the passed member value to the datastore type.- Specified by:
toDatastoreTypein interfaceTypeConverter<java.math.BigDecimal,java.lang.Double>- Parameters:
bd- Value from the member- Returns:
- Value for the datastore
-
-