Class LocalDateTimeStringConverter

    • 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
      int getDefaultColumnLength​(int columnPosition)
      Accessor for the default column length to use for the datastore column at the specified position.
      java.lang.String toDatastoreType​(java.time.LocalDateTime date)
      Method to convert the passed member value to the datastore type.
      java.time.LocalDateTime toMemberType​(java.lang.String str)
      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

      • LocalDateTimeStringConverter

        public LocalDateTimeStringConverter()
    • Method Detail

      • toMemberType

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

        public java.lang.String toDatastoreType​(java.time.LocalDateTime date)
        Description copied from interface: TypeConverter
        Method to convert the passed member value to the datastore type.
        Specified by:
        toDatastoreType in interface TypeConverter<java.time.LocalDateTime,​java.lang.String>
        Parameters:
        date - Value from the member
        Returns:
        Value for the datastore
      • getDefaultColumnLength

        public int getDefaultColumnLength​(int columnPosition)
        Description copied from interface: ColumnLengthDefiningTypeConverter
        Accessor for the default column length to use for the datastore column at the specified position.
        Specified by:
        getDefaultColumnLength in interface ColumnLengthDefiningTypeConverter
        Parameters:
        columnPosition - Position of the column being enquired about (0 = first)
        Returns:
        The column length (-1 if no preference)