Class SerializableByteBufferConverter
- java.lang.Object
-
- org.datanucleus.store.types.converters.SerializableByteBufferConverter
-
- All Implemented Interfaces:
Serializable
,TypeConverter<Serializable,ByteBuffer>
public class SerializableByteBufferConverter extends Object implements TypeConverter<Serializable,ByteBuffer>
Convenience class to handle Java serialisation of a Serializable object to/from ByteBuffer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableByteBufferConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
toDatastoreType(Serializable memberValue)
Method to convert the passed member value to the datastore type.Serializable
toMemberType(ByteBuffer datastoreValue)
Method to convert the passed datastore value to the member type.
-
-
-
Method Detail
-
toDatastoreType
public ByteBuffer toDatastoreType(Serializable memberValue)
Description copied from interface:TypeConverter
Method to convert the passed member value to the datastore type.- Specified by:
toDatastoreType
in interfaceTypeConverter<Serializable,ByteBuffer>
- Parameters:
memberValue
- Value from the member- Returns:
- Value for the datastore
-
toMemberType
public Serializable toMemberType(ByteBuffer datastoreValue)
Description copied from interface:TypeConverter
Method to convert the passed datastore value to the member type.- Specified by:
toMemberType
in interfaceTypeConverter<Serializable,ByteBuffer>
- Parameters:
datastoreValue
- Value from the datastore- Returns:
- Value for the member
-
-