public final class TimestampToIntMapper extends Object implements TypeMapper<Timestamp,Integer>
COMPARATOR
Constructor and Description |
---|
TimestampToIntMapper() |
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.
|
Timestamp |
toDatabaseType(Integer value)
Converts a value from the java domain to the database domain.
|
Integer |
toJavaType(Column column,
Class<?> entityType,
Timestamp 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<Timestamp,Integer>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<Timestamp,Integer>
column
- the column that is being mappedpublic Integer toJavaType(Column column, Class<?> entityType, Timestamp value)
TypeMapper
toJavaType
in interface TypeMapper<Timestamp,Integer>
column
- the column that is being mappedentityType
- the entity type that the mapping is forvalue
- the value to convertpublic Timestamp toDatabaseType(Integer value)
TypeMapper
toDatabaseType
in interface TypeMapper<Timestamp,Integer>
value
- the value to convertCopyright © 2016 Speedment, Inc.. All rights reserved.