javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
public class ContextStackAttributeConverter extends Object implements javax.persistence.AttributeConverter<ThreadContext.ContextStack,String>
ThreadContext.ContextStack
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 ContextStackJsonAttributeConverter
for
conversion both ways.Constructor | Description |
---|---|
ContextStackAttributeConverter() |
Modifier and Type | Method | 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-2018. 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.