Class AbstractListConverter<T>
java.lang.Object
com.broadleafcommerce.common.jpa.converter.AbstractListConverter<T>
- Type Parameters:
T
- The type of list to be transformed
- Direct Known Subclasses:
CurrencyListConverter
,LocaleListConverter
,StringListConverter
public abstract class AbstractListConverter<T>
extends Object
implements javax.persistence.AttributeConverter<List<T>,String>
Transforms a list of
AbstractListConverter
into a JSON object String
and vice-versa.-
Constructor Summary
ConstructorDescriptionAbstractListConverter
(Class<?> elementType, com.fasterxml.jackson.databind.ObjectMapper objectMapper) AbstractListConverter
(Class<?> elementType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean initIfNull) -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(List<T> attribute) convertToEntityAttribute
(String dbData) com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Details
-
AbstractListConverter
public AbstractListConverter(Class<?> elementType, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
AbstractListConverter
public AbstractListConverter(Class<?> elementType, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean initIfNull)
-
-
Method Details
-
convertToDatabaseColumn
-
convertToEntityAttribute
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-