public class DateIntType extends Object implements Convertible<Date,Integer>
Java java.util.Date
to JDBC INTEGER
.Constructor and Description |
---|
DateIntType(String pattern) |
Modifier and Type | Method and Description |
---|---|
ColumnType |
getColumnType() |
Class<Date> |
getType() |
Date |
toAttribute(Integer jdbc)
Convert the jdbc value to attribute format or type
|
Integer |
toJdbc(Date attribute)
Convert attribute to jdbc format or type
|
String |
toString() |
public DateIntType(String pattern)
public Integer toJdbc(Date attribute)
Convertible
toJdbc
in interface Convertible<Date,Integer>
attribute
- the value of to be convertedpublic Date toAttribute(Integer jdbc)
Convertible
toAttribute
in interface Convertible<Date,Integer>
jdbc
- the value stored at databasepublic ColumnType getColumnType()
getColumnType
in interface Convertible<Date,Integer>
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.