Class AbstractMapConverter<K,V>
- java.lang.Object
-
- com.broadleafcommerce.common.jpa.converter.AbstractMapConverter<K,V>
-
- Type Parameters:
K- The type of the map key to be transformedV- The type of the map value to be transformed
- Direct Known Subclasses:
InstantMapConverter,ObjectMapConverter,StringMapConverter
public abstract class AbstractMapConverter<K,V> extends Object implements javax.persistence.AttributeConverter<Map<K,V>,String>
Transforms a map ofAbstractMapConverter,AbstractMapConverterinto a JSON objectStringand vice-versa.
-
-
Constructor Summary
Constructors Constructor Description AbstractMapConverter(Class<?> keyType, Class<?> valueType, com.fasterxml.jackson.databind.ObjectMapper objectMapper)AbstractMapConverter(Class<?> keyType, Class<?> valueType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean initIfNull)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertToDatabaseColumn(Map<K,V> attribute)Map<K,V>convertToEntityAttribute(String dbData)com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()
-