public class IdentityMapper<T> extends Mapper<T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromDb(Object dbValue)
Transform a database value to a typed Java object.
|
static <T> IdentityMapper<T> |
getInstance() |
Object |
toDb(T value)
Transform a typed Java object into its database representation.
|
initialize@Nonnull public static <T> IdentityMapper<T> getInstance()
@Nullable public Object toDb(@Nullable T value) throws MapperException
MappertoDb in class Mapper<T>value - Value to transform.MapperException - Thrown if the value could not be mapped.@Nullable public T fromDb(@Nullable Object dbValue) throws MapperException
MapperfromDb in class Mapper<T>dbValue - Database value to be transformed.MapperException - Thrown if the database value could not be transformed to a Java object.Copyright © 2018 TomTom International BV. All rights reserved.