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