public final class BigDecimalToDouble extends Object implements TypeMapper<BigDecimal,Double>
COMPARATOR
Constructor and Description |
---|
BigDecimalToDouble() |
Modifier and Type | Method and Description |
---|---|
Type |
getJavaType(Column column)
Returns a type describing the resulting java type when this mapper is
applied to a database result.
|
String |
getLabel()
Returns the label for this mapper that should appear to the end user.
|
BigDecimal |
toDatabaseType(Double value)
Converts a value from the java domain to the database domain.
|
Double |
toJavaType(Column column,
Class<?> entityType,
BigDecimal value)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identity, primitive
public String getLabel()
TypeMapper
getLabel
in interface TypeMapper<BigDecimal,Double>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<BigDecimal,Double>
column
- the column that is being mappedpublic Double toJavaType(Column column, Class<?> entityType, BigDecimal value)
TypeMapper
toJavaType
in interface TypeMapper<BigDecimal,Double>
column
- the column that is being mappedentityType
- the entity type that the mapping is forvalue
- the value to convertpublic BigDecimal toDatabaseType(Double value)
TypeMapper
toDatabaseType
in interface TypeMapper<BigDecimal,Double>
value
- the value to convertCopyright © 2016 Speedment, Inc.. All rights reserved.