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