public class ContextMapJsonAttributeConverter extends Object implements AttributeConverter<Map<String,String>,String>
Map<String, String>
s in
LogEvent
s. This converter is capable of converting both to and from
String
s.
In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data
Processor.Constructor and Description |
---|
ContextMapJsonAttributeConverter() |
Modifier and Type | Method and Description |
---|---|
String |
convertToDatabaseColumn(Map<String,String> contextMap) |
Map<String,String> |
convertToEntityAttribute(String s) |
public ContextMapJsonAttributeConverter()
public String convertToDatabaseColumn(Map<String,String> contextMap)
convertToDatabaseColumn
in interface AttributeConverter<Map<String,String>,String>
public Map<String,String> convertToEntityAttribute(String s)
convertToEntityAttribute
in interface AttributeConverter<Map<String,String>,String>
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.