Constructor and Description |
---|
UUIDConverter() |
Modifier and Type | Method and Description |
---|---|
UUID |
convertToMapped(Class<? extends UUID> type,
byte[] value)
Convert the persisted type B to the mapped type A.
|
byte[] |
convertToPersisted(UUID value)
Convert the mapped type A to the persisted type B.
|
Class<UUID> |
getMappedType() |
Integer |
getPersistedSize() |
Class<byte[]> |
getPersistedType() |
public Class<UUID> getMappedType()
getMappedType
in interface Converter<UUID,byte[]>
public Class<byte[]> getPersistedType()
getPersistedType
in interface Converter<UUID,byte[]>
public Integer getPersistedSize()
getPersistedSize
in interface Converter<UUID,byte[]>
public byte[] convertToPersisted(UUID value)
Converter
convertToPersisted
in interface Converter<UUID,byte[]>
value
- to convertpublic UUID convertToMapped(Class<? extends UUID> type, byte[] value)
Converter
convertToMapped
in interface Converter<UUID,byte[]>
type
- the type to convertvalue
- value to convert