Class ArrayConverterImpl<T>

    • Constructor Detail

      • ArrayConverterImpl

        public ArrayConverterImpl()
    • Method Detail

      • mapForDb

        public void mapForDb​(String name,
                             T[] value,
                             Map<String,​Object> map)
        Description copied from interface: FieldConverter
        Adds the value to the map for database processing
        Specified by:
        mapForDb in interface FieldConverter<String,​T[]>
        Parameters:
        name - of field
        value - to be pushed to db
        map - map the value will be entered in
      • toJavaValue

        public T[] toJavaValue​(T[] currentValue,
                               Object newValue)
        Description copied from interface: FieldConverter
        Transforms from db value to value understood by the java class
        Specified by:
        toJavaValue in interface FieldConverter<String,​T[]>
        Parameters:
        currentValue - value the java object has right now
        newValue - db to be transformed
        Returns:
        Java value