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