public class MapperRegistry extends Object
Constructor and Description |
---|
MapperRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addAppObjectMapper(Mapper<?,?> mapper)
Add mapper for converting application objects to DB objects
|
void |
addDBObjectMapper(Mapper<?,?> mapper)
Add mapper for converting DB objects to application objects
|
<S> S |
convertApplicationObjectToDBObject(Object applicationObject,
Class<S> expectedDBObjectType) |
<S> S |
convertDBObjectToApplicationObject(MapperContext<Object,S> context) |
public void addAppObjectMapper(Mapper<?,?> mapper)
mapper
- public void addDBObjectMapper(Mapper<?,?> mapper)
mapper
- public <S> S convertDBObjectToApplicationObject(MapperContext<Object,S> context)
Copyright © 2015. All rights reserved.