Class SqlTimestampLongConverter

  • All Implemented Interfaces:
    java.io.Serializable, TypeConverter<java.sql.Timestamp,​java.lang.Long>

    public class SqlTimestampLongConverter
    extends java.lang.Object
    implements TypeConverter<java.sql.Timestamp,​java.lang.Long>
    Class to handle the conversion between java.sql.Timestamp and a Long form.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long toDatastoreType​(java.sql.Timestamp ts)
      Method to convert the passed member value to the datastore type.
      java.sql.Timestamp toMemberType​(java.lang.Long value)
      Method to convert the passed datastore value to the member type.
      • Methods inherited from class java.lang.Object

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

      • SqlTimestampLongConverter

        public SqlTimestampLongConverter()
    • Method Detail

      • toMemberType

        public java.sql.Timestamp toMemberType​(java.lang.Long value)
        Description copied from interface: TypeConverter
        Method to convert the passed datastore value to the member type.
        Specified by:
        toMemberType in interface TypeConverter<java.sql.Timestamp,​java.lang.Long>
        Parameters:
        value - Value from the datastore
        Returns:
        Value for the member
      • toDatastoreType

        public java.lang.Long toDatastoreType​(java.sql.Timestamp ts)
        Description copied from interface: TypeConverter
        Method to convert the passed member value to the datastore type.
        Specified by:
        toDatastoreType in interface TypeConverter<java.sql.Timestamp,​java.lang.Long>
        Parameters:
        ts - Value from the member
        Returns:
        Value for the datastore