Class ThrowableAttributeConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.db.jpa.converter.ThrowableAttributeConverter
-
- All Implemented Interfaces:
javax.persistence.AttributeConverter<java.lang.Throwable,java.lang.String>
public class ThrowableAttributeConverter extends java.lang.Object implements javax.persistence.AttributeConverter<java.lang.Throwable,java.lang.String>
A JPA 2.1 attribute converter forThrowable
s inLogEvent
s. This converter is capable of converting both to and fromString
s.
-
-
Constructor Summary
Constructors Constructor Description ThrowableAttributeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convertToDatabaseColumn(java.lang.Throwable throwable)
java.lang.Throwable
convertToEntityAttribute(java.lang.String s)
-
-
-
Method Detail
-
convertToDatabaseColumn
public java.lang.String convertToDatabaseColumn(java.lang.Throwable throwable)
- Specified by:
convertToDatabaseColumn
in interfacejavax.persistence.AttributeConverter<java.lang.Throwable,java.lang.String>
-
convertToEntityAttribute
public java.lang.Throwable convertToEntityAttribute(java.lang.String s)
- Specified by:
convertToEntityAttribute
in interfacejavax.persistence.AttributeConverter<java.lang.Throwable,java.lang.String>
-
-