Class MessageAttributeConverter

java.lang.Object
org.apache.logging.log4j.core.appender.db.jpa.converter.MessageAttributeConverter
All Implemented Interfaces:
javax.persistence.AttributeConverter<Message,String>

public class MessageAttributeConverter extends Object implements javax.persistence.AttributeConverter<Message,String>
A JPA 2.1 attribute converter for Messages in LogEvents. This converter is capable of converting both to and from Strings.
  • Constructor Details

    • MessageAttributeConverter

      public MessageAttributeConverter()
  • Method Details

    • convertToDatabaseColumn

      public String convertToDatabaseColumn(Message message)
      Specified by:
      convertToDatabaseColumn in interface javax.persistence.AttributeConverter<Message,String>
    • convertToEntityAttribute

      public Message convertToEntityAttribute(String s)
      Specified by:
      convertToEntityAttribute in interface javax.persistence.AttributeConverter<Message,String>