Package org.neo4j.ogm.typeconversion
Class NoOpWrappedByteArrayConverter
java.lang.Object
org.neo4j.ogm.typeconversion.NoOpWrappedByteArrayConverter
- All Implemented Interfaces:
AttributeConverter<Byte[],
byte[]>
public final class NoOpWrappedByteArrayConverter
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionByte[]
toEntityAttribute
(byte[] value) byte[]
toGraphProperty
(Byte[] value)
-
Constructor Details
-
NoOpWrappedByteArrayConverter
public NoOpWrappedByteArrayConverter()
-
-
Method Details
-
toGraphProperty
- Specified by:
toGraphProperty
in interfaceAttributeConverter<Byte[],
byte[]>
-
toEntityAttribute
- Specified by:
toEntityAttribute
in interfaceAttributeConverter<Byte[],
byte[]>
-