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 Details

    • ChangeContainerConverter

      public ChangeContainerConverter()
  • Method Details

    • getInstance

      public static ChangeContainerConverter getInstance()
    • convertToDatabaseColumn

      public String convertToDatabaseColumn(com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer attribute)
      Specified by:
      convertToDatabaseColumn in interface javax.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 interface javax.persistence.AttributeConverter<com.broadleafcommerce.data.tracking.core.filtering.domain.ChangeContainer,String>