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