Class ContextStackJsonAttributeConverter
java.lang.Object
org.apache.logging.log4j.core.appender.db.jpa.converter.ContextStackJsonAttributeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
public class ContextStackJsonAttributeConverter
extends Object
implements javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
A JPA 2.1 attribute converter for
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn(ThreadContext.ContextStack contextStack)
-
Constructor Details
-
ContextStackJsonAttributeConverter
public ContextStackJsonAttributeConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
-