public class EmbeddedIdMapper extends AbstractCompositeIdMapper implements SimpleIdMapperBuilder
compositeIdClass, ids
Constructor and Description |
---|
EmbeddedIdMapper(PropertyData idPropertyData,
Class compositeIdClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
mapToEntityFromMap(Object obj,
Map data) |
Object |
mapToIdFromEntity(Object 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.
|
add, mapToIdFromMap
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery, mapToIdFromMap
add
public EmbeddedIdMapper(PropertyData idPropertyData, Class compositeIdClass)
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 boolean mapToEntityFromMap(Object obj, Map data)
mapToEntityFromMap
in interface IdMapper
obj
- Object to map to.data
- Data to map.null
).public IdMapper prefixMappedProperties(String prefix)
IdMapper
prefixMappedProperties
in interface IdMapper
prefix
- Prefix to add to mapped propertiespublic Object mapToIdFromEntity(Object data)
mapToIdFromEntity
in interface IdMapper
public List<QueryParameterData> mapToQueryParametersFromId(Object obj)
mapToQueryParametersFromId
in interface IdMapper
obj
- Id from which to map.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.