Package com.kenshoo.pl.entity.converters
Class TimestampValueConverter
- java.lang.Object
-
- com.kenshoo.pl.entity.converters.TimestampValueConverter
-
- All Implemented Interfaces:
ValueConverter<java.time.Instant,java.sql.Timestamp>
public class TimestampValueConverter extends java.lang.Object implements ValueConverter<java.time.Instant,java.sql.Timestamp>
-
-
Field Summary
Fields Modifier and Type Field Description static TimestampValueConverterINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.InstantconvertFrom(java.sql.Timestamp value)java.sql.TimestampconvertTo(java.time.Instant value)java.lang.Class<java.time.Instant>getValueClass()
-
-
-
Field Detail
-
INSTANCE
public static final TimestampValueConverter INSTANCE
-
-
Method Detail
-
convertTo
public java.sql.Timestamp convertTo(java.time.Instant value)
- Specified by:
convertToin interfaceValueConverter<java.time.Instant,java.sql.Timestamp>
-
convertFrom
public java.time.Instant convertFrom(java.sql.Timestamp value)
- Specified by:
convertFromin interfaceValueConverter<java.time.Instant,java.sql.Timestamp>
-
getValueClass
public java.lang.Class<java.time.Instant> getValueClass()
- Specified by:
getValueClassin interfaceValueConverter<java.time.Instant,java.sql.Timestamp>
-
-