public class SingleIdMapper extends AbstractIdMapper implements SimpleIdMapperBuilder
Constructor and Description |
---|
SingleIdMapper(ServiceRegistry serviceRegistry) |
SingleIdMapper(ServiceRegistry serviceRegistry,
PropertyData propertyData) |
Modifier and Type | Method and Description |
---|---|
void |
add(PropertyData propertyData) |
void |
mapToEntityFromEntity(Object objTo,
Object objFrom) |
boolean |
mapToEntityFromMap(Object obj,
Map data) |
Object |
mapToIdFromEntity(Object data) |
Object |
mapToIdFromMap(Map data) |
void |
mapToMapFromEntity(Map<String,Object> data,
Object obj) |
void |
mapToMapFromId(Map<String,Object> data,
Object obj) |
List<QueryParameterData> |
mapToQueryParametersFromId(Object obj) |
IdMapper |
prefixMappedProperties(String prefix)
Creates a mapper with all mapped properties prefixed.
|
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery, getServiceRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery, getServiceRegistry
public SingleIdMapper(ServiceRegistry serviceRegistry)
public SingleIdMapper(ServiceRegistry serviceRegistry, PropertyData propertyData)
public void add(PropertyData propertyData)
add
in interface SimpleMapperBuilder
public boolean mapToEntityFromMap(Object obj, Map data)
mapToEntityFromMap
in interface IdMapper
obj
- Object to map to.data
- Data to map.null
).public Object mapToIdFromMap(Map data)
mapToIdFromMap
in interface IdMapper
public Object mapToIdFromEntity(Object data)
mapToIdFromEntity
in interface IdMapper
public void mapToMapFromId(Map<String,Object> data, Object obj)
mapToMapFromId
in interface IdMapper
public void mapToMapFromEntity(Map<String,Object> data, Object obj)
mapToMapFromEntity
in interface IdMapper
public IdMapper prefixMappedProperties(String prefix)
IdMapper
prefixMappedProperties
in interface IdMapper
prefix
- Prefix to add to mapped propertiespublic List<QueryParameterData> mapToQueryParametersFromId(Object obj)
mapToQueryParametersFromId
in interface IdMapper
obj
- Id from which to map.Copyright © 2016 JBoss by Red Hat. All rights reserved.