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