Class StringMapConverter

  • All Implemented Interfaces:
    PropertyConverter<java.util.Map<java.lang.String,​java.lang.String>,​byte[]>

    public class StringMapConverter
    extends java.lang.Object
    implements PropertyConverter<java.util.Map<java.lang.String,​java.lang.String>,​byte[]>
    Converts a String map entity property to a byte array database value using FlexBuffers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convertToDatabaseValue​(java.util.Map<java.lang.String,​java.lang.String> map)  
      java.util.Map<java.lang.String,​java.lang.String> convertToEntityProperty​(byte[] databaseValue)  
      • Methods inherited from class java.lang.Object

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

      • StringMapConverter

        public StringMapConverter()
    • Method Detail

      • convertToDatabaseValue

        public byte[] convertToDatabaseValue​(java.util.Map<java.lang.String,​java.lang.String> map)
        Specified by:
        convertToDatabaseValue in interface PropertyConverter<java.util.Map<java.lang.String,​java.lang.String>,​byte[]>
      • convertToEntityProperty

        public java.util.Map<java.lang.String,​java.lang.String> convertToEntityProperty​(byte[] databaseValue)
        Specified by:
        convertToEntityProperty in interface PropertyConverter<java.util.Map<java.lang.String,​java.lang.String>,​byte[]>