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