Class NextActionConverter
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 Summary
ConstructorDescriptionNextActionConverter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn
(com.broadleafcommerce.paymentgateway.domain.NextAction attribute) com.broadleafcommerce.paymentgateway.domain.NextAction
convertToEntityAttribute
(String dbData) com.fasterxml.jackson.databind.ObjectMapper
-
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 interfacejakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,
String>
-
convertToEntityAttribute
public com.broadleafcommerce.paymentgateway.domain.NextAction convertToEntityAttribute(String dbData) - Specified by:
convertToEntityAttribute
in interfacejakarta.persistence.AttributeConverter<com.broadleafcommerce.paymentgateway.domain.NextAction,
String>
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-