Package org.neo4j.ogm.typeconversion
Class NoOpByteArrayConverter
java.lang.Object
org.neo4j.ogm.typeconversion.NoOpByteArrayConverter
- All Implemented Interfaces:
AttributeConverter<byte[],
byte[]>
public final class NoOpByteArrayConverter
extends Object
implements AttributeConverter<byte[],byte[]>
This converter is provided for convenience so that the default conversion of byte arrays (byte[]
to Base64 encoded Strings can be turned off. Be aware that this works only with the embedded or bolt transport!
Neo4j's HTTP endpoint does not support literal byte arrays. In that case, the values will be stored as Base64 encoded string.
Those Strings can be however read into a byte array literal.
- Author:
- Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
toEntityAttribute
(byte[] value) byte[]
toGraphProperty
(byte[] value)
-
Constructor Details
-
NoOpByteArrayConverter
public NoOpByteArrayConverter()
-
-
Method Details
-
toGraphProperty
public byte[] toGraphProperty(byte[] value) - Specified by:
toGraphProperty
in interfaceAttributeConverter<byte[],
byte[]>
-
toEntityAttribute
public byte[] toEntityAttribute(byte[] value) - Specified by:
toEntityAttribute
in interfaceAttributeConverter<byte[],
byte[]>
-