T
- the database typepublic final class PrimitiveTypeMapper<T> extends Object implements TypeMapper<T,T>
COMPARATOR
Constructor and Description |
---|
PrimitiveTypeMapper() |
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.
|
T |
toDatabaseType(T value)
Converts a value from the java domain to the database domain.
|
T |
toJavaType(Column column,
Class<?> entityType,
T value)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identity, primitive
public String getLabel()
TypeMapper
getLabel
in interface TypeMapper<T,T>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<T,T>
column
- the column that is being mappedpublic T toJavaType(Column column, Class<?> entityType, T value)
TypeMapper
toJavaType
in interface TypeMapper<T,T>
column
- the column that is being mappedentityType
- the entity type that the mapping is forvalue
- the value to convertpublic T toDatabaseType(T value)
TypeMapper
toDatabaseType
in interface TypeMapper<T,T>
value
- the value to convertCopyright © 2016 Speedment, Inc.. All rights reserved.