public class InstantConverter
Converts from a Instant to a java.sql.Timestamp for Java 8. Note that when converting between the time type and the database type all times will be converted to the UTC zone offset.
Constructor and Description |
---|
InstantConverter()
Converts from a Instant to a java.sql.Timestamp for Java 8. Note that
when converting between the time type and the database type all times will be converted to the
UTC zone offset.
|
Modifier and Type | Method and Description |
---|---|
java.time.Instant |
convertToMapped(java.lang.Class<? extends java.time.Instant> type,
java.sql.Timestamp value) |
java.sql.Timestamp |
convertToPersisted(java.time.Instant value) |
java.lang.Class<java.time.Instant> |
getMappedType() |
java.lang.Integer |
getPersistedSize() |
java.lang.Class<java.sql.Timestamp> |
getPersistedType() |
public InstantConverter()
Converts from a Instant to a java.sql.Timestamp for Java 8. Note that when converting between the time type and the database type all times will be converted to the UTC zone offset.
public java.lang.Class<java.time.Instant> getMappedType()
public java.lang.Class<java.sql.Timestamp> getPersistedType()
public java.lang.Integer getPersistedSize()
public java.sql.Timestamp convertToPersisted(java.time.Instant value)
public java.time.Instant convertToMapped(java.lang.Class<? extends java.time.Instant> type, java.sql.Timestamp value)