Class EmbeddedIdMapper
java.lang.Object
org.hibernate.envers.internal.entities.mapper.AbstractMapper
org.hibernate.envers.internal.entities.mapper.id.AbstractIdMapper
org.hibernate.envers.internal.entities.mapper.id.AbstractCompositeIdMapper
org.hibernate.envers.internal.entities.mapper.id.EmbeddedIdMapper
- All Implemented Interfaces:
IdMapper, SimpleIdMapperBuilder, SimpleMapperBuilder
- Direct Known Subclasses:
NestedEmbeddedIdMapper
An identifier mapper implementation for
EmbeddedId mappings.-
Field Summary
Fields inherited from class AbstractCompositeIdMapper
compositeType, ids -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedIdMapper(PropertyData propertyData, org.hibernate.mapping.Component component) -
Method Summary
Modifier and TypeMethodDescriptionbooleanmapToEntityFromMap(Object obj, Map data) mapToIdFromEntity(Object data) voidmapToMapFromEntity(Map<String, Object> data, Object obj) voidmapToMapFromId(Map<String, Object> data, Object obj) prefixMappedProperties(String prefix) Creates a mapper with all mapped properties prefixed.Methods inherited from class AbstractCompositeIdMapper
add, add, instantiateCompositeId, mapToEntityFromEntity, mapToIdFromMap, mapToImmutableIdFromMapMethods inherited from class AbstractIdMapper
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery, addNamedIdEqualsToQuery, addNullableIdsEqualToQuery, getAndSetValue, getServiceRegistry, getValueFromObject, setValueOnObjectMethods inherited from class AbstractMapper
getAndSetValue, getValueFromObject, getValueFromObject, newObjectInstance, setValueOnObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IdMapper
addIdEqualsToQuery, addIdsEqualToQuery, addIdsEqualToQuery, addNamedIdEqualsToQuery, addNamedIdEqualsToQuery, addNullableIdsEqualToQuery, getServiceRegistry, mapToIdFromMap, mapToMapFromIdMethods inherited from interface SimpleIdMapperBuilder
addMethods inherited from interface SimpleMapperBuilder
add
-
Constructor Details
-
EmbeddedIdMapper
-
-
Method Details
-
mapToMapFromId
-
mapToMapFromEntity
-
mapToEntityFromMap
- Specified by:
mapToEntityFromMapin interfaceIdMapper- Parameters:
obj- Object to map to.data- Data to map.- Returns:
- True if data was mapped; false otherwise (when the id is
null).
-
prefixMappedProperties
Description copied from interface:IdMapperCreates a mapper with all mapped properties prefixed. A mapped property is a property which is directly mapped to values (not composite).- Specified by:
prefixMappedPropertiesin interfaceIdMapper- Parameters:
prefix- Prefix to add to mapped properties- Returns:
- A copy of the current property mapper, with mapped properties prefixed.
-
mapToIdFromEntity
- Specified by:
mapToIdFromEntityin interfaceIdMapper
-
mapToQueryParametersFromId
- Specified by:
mapToQueryParametersFromIdin interfaceIdMapper- Parameters:
obj- Id from which to map.- Returns:
- A set parameter data, needed to build a query basing on the given id.
-