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