java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.domain.support.NextActionConverter
All Implemented Interfaces:
jakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,String>

public class NextActionConverter extends Object implements jakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,String>
Used to convert a NextAction to a serialized JSON object string representation for persistence and vice-versa.
  • Constructor Details

    • NextActionConverter

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

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(com.broadleafcommerce.paymentgateway.domain.NextAction attribute)
      Specified by:
      convertToDatabaseColumn in interface jakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,String>
    • convertToEntityAttribute

      public com.broadleafcommerce.paymentgateway.domain.NextAction convertToEntityAttribute(String dbData)
      Specified by:
      convertToEntityAttribute in interface jakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,String>
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()