public class DoubleBigDecimalType extends Object implements Convertible<Double,BigDecimal>
Java Double
to JDBC Decimal
. This conversion has default usage.Constructor and Description |
---|
DoubleBigDecimalType() |
DoubleBigDecimalType(String pattern) |
Modifier and Type | Method and Description |
---|---|
ColumnType |
getColumnType() |
Class<Double> |
getType() |
Double |
toAttribute(BigDecimal jdbc)
Convert the jdbc value to attribute format or type
|
BigDecimal |
toJdbc(Double attribute)
Convert attribute to jdbc format or type
|
String |
toString() |
public DoubleBigDecimalType()
public DoubleBigDecimalType(String pattern)
public BigDecimal toJdbc(Double attribute)
Convertible
toJdbc
in interface Convertible<Double,BigDecimal>
attribute
- the value of to be convertedpublic Double toAttribute(BigDecimal jdbc)
Convertible
toAttribute
in interface Convertible<Double,BigDecimal>
jdbc
- the value stored at databasepublic Class<Double> getType()
getType
in interface Convertible<Double,BigDecimal>
public ColumnType getColumnType()
getColumnType
in interface Convertible<Double,BigDecimal>
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.