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