public class OffsetDateTimeConverter extends Object implements Converter<OffsetDateTime,Timestamp>
OffsetDateTime to a Timestamp for Java 8.| Constructor and Description |
|---|
OffsetDateTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
convertToMapped(Class<? extends OffsetDateTime> type,
Timestamp value)
Convert the persisted type B to the mapped type A.
|
Timestamp |
convertToPersisted(OffsetDateTime value)
Convert the mapped type A to the persisted type B.
|
Class<OffsetDateTime> |
getMappedType() |
Integer |
getPersistedSize() |
Class<Timestamp> |
getPersistedType() |
public Class<OffsetDateTime> getMappedType()
getMappedType in interface Converter<OffsetDateTime,Timestamp>public Class<Timestamp> getPersistedType()
getPersistedType in interface Converter<OffsetDateTime,Timestamp>public Integer getPersistedSize()
getPersistedSize in interface Converter<OffsetDateTime,Timestamp>public Timestamp convertToPersisted(OffsetDateTime value)
ConverterconvertToPersisted in interface Converter<OffsetDateTime,Timestamp>value - to convertpublic OffsetDateTime convertToMapped(Class<? extends OffsetDateTime> type, Timestamp value)
ConverterconvertToMapped in interface Converter<OffsetDateTime,Timestamp>type - the type to convertvalue - value to convert