Package org.neo4j.ogm.typeconversion
Class ByteArrayWrapperBase64Converter
java.lang.Object
org.neo4j.ogm.typeconversion.ByteArrayWrapperBase64Converter
- All Implemented Interfaces:
AttributeConverter<Byte[],
String>
public class ByteArrayWrapperBase64Converter
extends Object
implements AttributeConverter<Byte[],String>
By default the OGM will map Byte[] wrapped byte[] objects to Base64
String values when being stored as a node / relationship property
The conversion between the primitive byte[] class and its wrapper
Byte[] means that this converter is slightly slower than
using the ByteArray64Converter, which works with primitive
byte arrays directly.
- Author:
- Vince Bickers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionByte[]
toEntityAttribute
(String value) toGraphProperty
(Byte[] value)
-
Constructor Details
-
ByteArrayWrapperBase64Converter
public ByteArrayWrapperBase64Converter()
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Byte[],
String>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Byte[],
String>
-