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