Package net.sf.jkniv.whinstone.types
Class LongBigDecimalType
- java.lang.Object
-
- net.sf.jkniv.whinstone.types.LongBigDecimalType
-
- All Implemented Interfaces:
Convertible<Long,BigDecimal>
public class LongBigDecimalType extends Object implements Convertible<Long,BigDecimal>
Conversion type fromJava LongtoJDBC DECIMAL. This conversion has default usage.- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Constructor Summary
Constructors Constructor Description LongBigDecimalType()LongBigDecimalType(String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnTypegetColumnType()Class<Long>getType()LongtoAttribute(BigDecimal jdbc)Convert the jdbc value to attribute format or typeBigDecimaltoJdbc(Long attribute)Convert attribute to jdbc format or typeStringtoString()
-
-
-
Constructor Detail
-
LongBigDecimalType
public LongBigDecimalType()
-
LongBigDecimalType
public LongBigDecimalType(String pattern)
-
-
Method Detail
-
toJdbc
public BigDecimal toJdbc(Long attribute)
Description copied from interface:ConvertibleConvert attribute to jdbc format or type- Specified by:
toJdbcin interfaceConvertible<Long,BigDecimal>- Parameters:
attribute- the value of to be converted- Returns:
- the value to be stored for jdbc driver
-
toAttribute
public Long toAttribute(BigDecimal jdbc)
Description copied from interface:ConvertibleConvert the jdbc value to attribute format or type- Specified by:
toAttributein interfaceConvertible<Long,BigDecimal>- Parameters:
jdbc- the value stored at database- Returns:
- the value of attribute converted
-
getType
public Class<Long> getType()
- Specified by:
getTypein interfaceConvertible<Long,BigDecimal>
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnTypein interfaceConvertible<Long,BigDecimal>
-
-