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