public class ContextStackJsonAttributeConverter extends Object implements javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
ThreadContext.ContextStacks in
LogEvents. This converter is capable of converting both to and from
Strings.
In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data
Processor.| Constructor and Description |
|---|
ContextStackJsonAttributeConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToDatabaseColumn(ThreadContext.ContextStack contextStack) |
ThreadContext.ContextStack |
convertToEntityAttribute(String s) |
public String convertToDatabaseColumn(ThreadContext.ContextStack contextStack)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>public ThreadContext.ContextStack convertToEntityAttribute(String s)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<ThreadContext.ContextStack,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.