public class TimestampToLongMapper extends Object implements TypeMapper<Timestamp,Long>
COMPARATOR
Constructor and Description |
---|
TimestampToLongMapper() |
Modifier and Type | Method and Description |
---|---|
Class<Timestamp> |
getDatabaseType()
Returns the type as it is represented in the JDBC driver.
|
Class<Long> |
getJavaType()
Returns the type as it should be represented in generated code.
|
boolean |
isIdentityMapper()
Returns if this is an identity mapper.
|
Timestamp |
toDatabaseType(Long value)
Converts a value from the java domain to the database domain.
|
Long |
toJavaType(Timestamp value)
Converts a value from the database domain to the java domain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabel, isApproximation
public Class<Long> getJavaType()
TypeMapper
getJavaType
in interface TypeMapper<Timestamp,Long>
public Class<Timestamp> getDatabaseType()
TypeMapper
getDatabaseType
in interface TypeMapper<Timestamp,Long>
public Long toJavaType(Timestamp value)
TypeMapper
toJavaType
in interface TypeMapper<Timestamp,Long>
value
- the value to convertpublic Timestamp toDatabaseType(Long value)
TypeMapper
toDatabaseType
in interface TypeMapper<Timestamp,Long>
value
- the value to convertpublic boolean isIdentityMapper()
TypeMapper
String
to String
is an indentity mapper.isIdentityMapper
in interface TypeMapper<Timestamp,Long>
true
if identity mapper, else false
Copyright © 2016 Speedment, Inc.. All rights reserved.