Class 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.Instant convertFrom​(java.sql.Timestamp value)  
      java.sql.Timestamp convertTo​(java.time.Instant value)  
      java.lang.Class<java.time.Instant> getValueClass()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convertTo

        public java.sql.Timestamp convertTo​(java.time.Instant value)
        Specified by:
        convertTo in interface ValueConverter<java.time.Instant,​java.sql.Timestamp>
      • convertFrom

        public java.time.Instant convertFrom​(java.sql.Timestamp value)
        Specified by:
        convertFrom in interface ValueConverter<java.time.Instant,​java.sql.Timestamp>
      • getValueClass

        public java.lang.Class<java.time.Instant> getValueClass()
        Specified by:
        getValueClass in interface ValueConverter<java.time.Instant,​java.sql.Timestamp>