public class ByteArrayByteBufferConverter extends Object implements TypeConverter<byte[],ByteBuffer>
Constructor and Description |
---|
ByteArrayByteBufferConverter() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
toDatastoreType(byte[] memberValue)
Method to convert the passed member value to the datastore type.
|
byte[] |
toMemberType(ByteBuffer datastoreValue)
Method to convert the passed datastore value to the member type.
|
public ByteBuffer toDatastoreType(byte[] memberValue)
TypeConverter
toDatastoreType
in interface TypeConverter<byte[],ByteBuffer>
memberValue
- Value from the memberpublic byte[] toMemberType(ByteBuffer datastoreValue)
TypeConverter
toMemberType
in interface TypeConverter<byte[],ByteBuffer>
datastoreValue
- Value from the datastoreCopyright © 2015. All rights reserved.