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