org.hibernate.envers.entities.mapper.relation
Class MapCollectionMapper<T extends Map>
java.lang.Object
org.hibernate.envers.entities.mapper.relation.AbstractCollectionMapper<T>
org.hibernate.envers.entities.mapper.relation.MapCollectionMapper<T>
- All Implemented Interfaces:
- PropertyMapper
- Direct Known Subclasses:
- SortedMapCollectionMapper
public class MapCollectionMapper<T extends Map>
- extends AbstractCollectionMapper<T>
- implements PropertyMapper
- Author:
- Adam Warski (adam at warski dot org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elementComponentData
protected final MiddleComponentData elementComponentData
indexComponentData
protected final MiddleComponentData indexComponentData
MapCollectionMapper
public MapCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
Class<? extends T> collectionClass,
Class<? extends T> proxyClass,
MiddleComponentData elementComponentData,
MiddleComponentData indexComponentData)
getInitializor
protected Initializor<T> getInitializor(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Object primaryKey,
Number revision)
- Specified by:
getInitializor
in class AbstractCollectionMapper<T extends Map>
getNewCollectionContent
protected Collection getNewCollectionContent(PersistentCollection newCollection)
- Specified by:
getNewCollectionContent
in class AbstractCollectionMapper<T extends Map>
getOldCollectionContent
protected Collection getOldCollectionContent(Serializable oldCollection)
- Specified by:
getOldCollectionContent
in class AbstractCollectionMapper<T extends Map>
mapToMapFromObject
protected void mapToMapFromObject(Map<String,Object> data,
Object changed)
- Description copied from class:
AbstractCollectionMapper
- Maps the changed collection element to the given map.
- Specified by:
mapToMapFromObject
in class AbstractCollectionMapper<T extends Map>
- Parameters:
data
- Where to map the data.changed
- The changed collection element to map.
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.