@Component public class AnnotationEntityMapper extends Object implements EntityMapper
Constructor and Description |
---|
AnnotationEntityMapper() |
Modifier and Type | Method and Description |
---|---|
EntityMetadata |
getEntityMetadata(Class<?> entityClass) |
<T> T |
mapFrom(Class<T> targetType,
SimpleEntity entity) |
MapResult |
mapTo(Object mappableObject) |
Object |
updateId(String id,
Object mappableObject) |
public MapResult mapTo(Object mappableObject) throws JasDBStorageException
mapTo
in interface EntityMapper
JasDBStorageException
public Object updateId(String id, Object mappableObject) throws JasDBStorageException
updateId
in interface EntityMapper
JasDBStorageException
public <T> T mapFrom(Class<T> targetType, SimpleEntity entity) throws JasDBStorageException
mapFrom
in interface EntityMapper
JasDBStorageException
public EntityMetadata getEntityMetadata(Class<?> entityClass) throws JasDBStorageException
getEntityMetadata
in interface EntityMapper
JasDBStorageException
Copyright © 2015. All rights reserved.