Class ChangeContainerConverter
java.lang.Object
com.broadleafcommerce.dataimport.provider.jpa.domain.support.ChangeContainerConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer,
String>
public class ChangeContainerConverter
extends Object
implements javax.persistence.AttributeConverter<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer,String>
Transforms a
ChangeContainer
into a JSON object String
and vice-versa.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer attribute) com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer
convertToEntityAttribute
(String dbData) static ChangeContainerConverter
-
Constructor Details
-
ChangeContainerConverter
public ChangeContainerConverter()
-
-
Method Details
-
getInstance
-
convertToDatabaseColumn
public String convertToDatabaseColumn(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer attribute) - Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer,
String>
-
convertToEntityAttribute
public com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer convertToEntityAttribute(String dbData) - Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer,
String>
-