Class ContextDataAttributeConverter
java.lang.Object
org.apache.logging.log4j.core.appender.db.jpa.converter.ContextDataAttributeConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<ReadOnlyStringMap,
String>
public class ContextDataAttributeConverter
extends Object
implements javax.persistence.AttributeConverter<ReadOnlyStringMap,String>
A JPA 2.1 attribute converter for
ReadOnlyStringMap
s in
LogEvent
s. This converter is only capable of converting to String
s. The
convertToEntityAttribute(String)
method throws an UnsupportedOperationException
. If you need to
support converting to an entity attribute, you should use the ContextMapJsonAttributeConverter
for conversion
both ways.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContextDataAttributeConverter
public ContextDataAttributeConverter()
-
-
Method Details
-
convertToDatabaseColumn
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,
String>
-
convertToEntityAttribute
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<ReadOnlyStringMap,
String>
-