public class MapCollectionMapper<T extends java.util.Map> extends AbstractCollectionMapper<T> implements PropertyMapper
Modifier and Type | Field and Description |
---|---|
protected MiddleComponentData |
elementComponentData |
protected MiddleComponentData |
indexComponentData |
collectionClass, commonCollectionMapperData
Constructor and Description |
---|
MapCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
java.lang.Class<? extends T> collectionClass,
java.lang.Class<? extends T> proxyClass,
MiddleComponentData elementComponentData,
MiddleComponentData indexComponentData) |
Modifier and Type | Method and Description |
---|---|
protected Initializor<T> |
getInitializor(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
java.lang.Object primaryKey,
java.lang.Number revision) |
protected java.util.Collection |
getNewCollectionContent(PersistentCollection newCollection) |
protected java.util.Collection |
getOldCollectionContent(java.io.Serializable oldCollection) |
protected void |
mapToMapFromObject(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.Object changed)
Maps the changed collection element to the given map.
|
mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntity
protected final MiddleComponentData elementComponentData
protected final MiddleComponentData indexComponentData
public MapCollectionMapper(CommonCollectionMapperData commonCollectionMapperData, java.lang.Class<? extends T> collectionClass, java.lang.Class<? extends T> proxyClass, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData)
protected Initializor<T> getInitializor(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, java.lang.Object primaryKey, java.lang.Number revision)
getInitializor
in class AbstractCollectionMapper<T extends java.util.Map>
protected java.util.Collection getNewCollectionContent(PersistentCollection newCollection)
getNewCollectionContent
in class AbstractCollectionMapper<T extends java.util.Map>
protected java.util.Collection getOldCollectionContent(java.io.Serializable oldCollection)
getOldCollectionContent
in class AbstractCollectionMapper<T extends java.util.Map>
protected void mapToMapFromObject(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.Object changed)
AbstractCollectionMapper
mapToMapFromObject
in class AbstractCollectionMapper<T extends java.util.Map>
data
- Where to map the data.changed
- The changed collection element to map.Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.