public final class BinaryToUuidMapper extends Object implements TypeMapper<Object,UUID>
TypeMapper.Category, TypeMapper.Ordering
COMPARATOR
Constructor and Description |
---|
BinaryToUuidMapper() |
Modifier and Type | Method and Description |
---|---|
Type |
getJavaType(Column column)
Returns a type describing the resulting java type when this mapper is
applied to a database result.
|
String |
getLabel()
Returns the label for this mapper that should appear to the end user.
|
byte[] |
toDatabaseType(UUID uuid)
Converts a value from the java domain to the database domain.
|
UUID |
toJavaType(Column column,
Class<?> aClass,
Object binary)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaTypeCategory, getOrdering, identity, primitive
public String getLabel()
TypeMapper
getLabel
in interface TypeMapper<Object,UUID>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<Object,UUID>
column
- the column that is being mappedpublic UUID toJavaType(Column column, Class<?> aClass, Object binary)
TypeMapper
toJavaType
in interface TypeMapper<Object,UUID>
column
- the column that is being mappedaClass
- the entity type that the mapping is forbinary
- the value to convertpublic byte[] toDatabaseType(UUID uuid)
TypeMapper
toDatabaseType
in interface TypeMapper<Object,UUID>
uuid
- the value to convertCopyright © 2018 Speedment, Inc.. All rights reserved.