public class ContextDataAttributeConverter extends Object implements javax.persistence.AttributeConverter<ReadOnlyStringMap,String>
ReadOnlyStringMaps in
LogEvents. This converter is only capable of converting to Strings. 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 and Description |
|---|
ContextDataAttributeConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToDatabaseColumn(ReadOnlyStringMap contextData) |
ReadOnlyStringMap |
convertToEntityAttribute(String s) |
public String convertToDatabaseColumn(ReadOnlyStringMap contextData)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,String>public ReadOnlyStringMap convertToEntityAttribute(String s)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<ReadOnlyStringMap,String>Copyright © 1999-2017 The 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.