Class ScheduledJobDetailValueConverter

java.lang.Object
com.broadleafcommerce.scheduledjob.provider.jpa.support.ScheduledJobDetailValueConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<Object,String>

public class ScheduledJobDetailValueConverter extends Object implements jakarta.persistence.AttributeConverter<Object,String>
Transforms an Object into a JSON object String and vice-versa.
Author:
Samarth Dhruva (samarthd)
  • Constructor Details

    • ScheduledJobDetailValueConverter

      public ScheduledJobDetailValueConverter(@Nullable @Qualifier("converterObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Object attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<Object,String>
    • convertToEntityAttribute

      public Object convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<Object,String>