Class ContextDataJsonAttributeConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.db.jpa.converter.ContextDataJsonAttributeConverter
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ReadOnlyStringMap,java.lang.String>
public class ContextDataJsonAttributeConverter extends java.lang.Object implements javax.persistence.AttributeConverter<ReadOnlyStringMap,java.lang.String>
A JPA 2.1 attribute converter forReadOnlyStringMaps inLogEvents. This converter is capable of converting both to and fromStrings. In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data Processor.
-
-
Constructor Summary
Constructors Constructor Description ContextDataJsonAttributeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringconvertToDatabaseColumn(ReadOnlyStringMap contextData)ReadOnlyStringMapconvertToEntityAttribute(java.lang.String s)
-
-
-
Method Detail
-
convertToDatabaseColumn
public java.lang.String convertToDatabaseColumn(ReadOnlyStringMap contextData)
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,java.lang.String>
-
convertToEntityAttribute
public ReadOnlyStringMap convertToEntityAttribute(java.lang.String s)
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,java.lang.String>
-
-