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