public class BigDecimalToDouble extends Object implements TypeMapper<BigDecimal,Double>
COMPARATOR
Constructor and Description |
---|
BigDecimalToDouble() |
Modifier and Type | Method and Description |
---|---|
Class<BigDecimal> |
getDatabaseType()
Returns the type as it is represented in the JDBC driver.
|
Class<Double> |
getJavaType()
Returns the type as it should be represented in generated code.
|
boolean |
isApproximation()
Returns if this mapper may use an approximation when converting from one
form to the other.
|
boolean |
isIdentityMapper()
Returns if this is an identity mapper.
|
BigDecimal |
toDatabaseType(Double value)
Converts a value from the java domain to the database domain.
|
Double |
toJavaType(BigDecimal value)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel
public Class<Double> getJavaType()
TypeMapper
getJavaType
in interface TypeMapper<BigDecimal,Double>
public Class<BigDecimal> getDatabaseType()
TypeMapper
getDatabaseType
in interface TypeMapper<BigDecimal,Double>
public Double toJavaType(BigDecimal value)
TypeMapper
toJavaType
in interface TypeMapper<BigDecimal,Double>
value
- the value to convertpublic BigDecimal toDatabaseType(Double value)
TypeMapper
toDatabaseType
in interface TypeMapper<BigDecimal,Double>
value
- the value to convertpublic boolean isIdentityMapper()
TypeMapper
String
to String
is an indentity mapper.isIdentityMapper
in interface TypeMapper<BigDecimal,Double>
true
if identity mapper, else false
public boolean isApproximation()
TypeMapper
isApproximation
in interface TypeMapper<BigDecimal,Double>
Copyright © 2016 Speedment, Inc.. All rights reserved.