public final class BinaryToByteArrayMapper extends Object implements TypeMapper<Object,byte[]>
byte[]
masked
as an java.lang.Object
and a properly typed byte[]
.TypeMapper.Category, TypeMapper.Ordering
COMPARATOR
Constructor and Description |
---|
BinaryToByteArrayMapper() |
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.
|
TypeMapper.Category |
getJavaTypeCategory(Column column)
Returns the
TypeMapper.Category of the type returned by
TypeMapper.getJavaType(Column) . |
String |
getLabel()
Returns the label for this mapper that should appear to the end user.
|
Object |
toDatabaseType(byte[] array)
Converts a value from the java domain to the database domain.
|
byte[] |
toJavaType(Column column,
Class<?> entityType,
Object binary)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrdering, identity, primitive
public String getLabel()
TypeMapper
getLabel
in interface TypeMapper<Object,byte[]>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<Object,byte[]>
column
- the column that is being mappedpublic TypeMapper.Category getJavaTypeCategory(Column column)
TypeMapper
TypeMapper.Category
of the type returned by
TypeMapper.getJavaType(Column)
.getJavaTypeCategory
in interface TypeMapper<Object,byte[]>
column
- the columnpublic byte[] toJavaType(Column column, Class<?> entityType, Object binary)
TypeMapper
toJavaType
in interface TypeMapper<Object,byte[]>
column
- the column that is being mappedentityType
- the entity type that the mapping is forbinary
- the value to convertpublic Object toDatabaseType(byte[] array)
TypeMapper
toDatabaseType
in interface TypeMapper<Object,byte[]>
array
- the value to convertCopyright © 2017 Speedment, Inc.. All rights reserved.