public final class BinaryToBigIntegerMapper extends Object implements TypeMapper<Object,BigInteger>
BigDecimal
.TypeMapper.Category, TypeMapper.Ordering
COMPARATOR
Constructor and Description |
---|
BinaryToBigIntegerMapper() |
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.
|
TypeMapper.Category |
getJavaTypeCategory(Column column)
Returns the
TypeMapper.Category of the type returned by
TypeMapper.getJavaType(Column) . |
String |
getLabel()
Returns the label for this mapper that should appear to the end user.
|
TypeMapper.Ordering |
getOrdering()
Returns how the
TypeMapper.Ordering of mapped and un-mapped types relate
to each other. |
Object |
toDatabaseType(BigInteger value)
Converts a value from the java domain to the database domain.
|
BigInteger |
toJavaType(Column column,
Class<?> entityType,
Object 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<Object,BigInteger>
public Type getJavaType(Column column)
TypeMapper
getJavaType
in interface TypeMapper<Object,BigInteger>
column
- the column that is being mappedpublic TypeMapper.Category getJavaTypeCategory(Column column)
TypeMapper
TypeMapper.Category
of the type returned by
TypeMapper.getJavaType(Column)
.getJavaTypeCategory
in interface TypeMapper<Object,BigInteger>
column
- the columnpublic BigInteger toJavaType(Column column, Class<?> entityType, Object value)
TypeMapper
toJavaType
in interface TypeMapper<Object,BigInteger>
column
- the column that is being mappedentityType
- the entity type that the mapping is forvalue
- the value to convertpublic Object toDatabaseType(BigInteger value)
TypeMapper
toDatabaseType
in interface TypeMapper<Object,BigInteger>
value
- the value to convertpublic TypeMapper.Ordering getOrdering()
TypeMapper
TypeMapper.Ordering
of mapped and un-mapped types relate
to each other.
Speedment is using this method to determine if certain optimizations of streams can be made. Make sure to implicitly specify the Ordering in any custom TypeMapper to allow maximum execution speed.
Specifying TypeMapper.Ordering.UNSPECIFIED
prevents some optimizations so
if possible, write a TypeMapper that RETAINS ordering.
getOrdering
in interface TypeMapper<Object,BigInteger>
TypeMapper.Ordering.RETAIN
,
TypeMapper.Ordering.INVERT
,
TypeMapper.Ordering.UNSPECIFIED
Copyright © 2018 Speedment, Inc.. All rights reserved.