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, ordinalInId, revisionTypeInId| Constructor and Description |
|---|
MapCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
java.lang.Class<? extends T> collectionClass,
java.lang.Class<? extends T> proxyClass,
MiddleComponentData elementComponentData,
MiddleComponentData indexComponentData,
boolean revisionTypeInId) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<java.lang.Object> |
buildCollectionChangeSet(java.lang.Object eventCollection,
java.util.Collection collection) |
protected Initializor<T> |
getInitializor(EnversService enversService,
AuditReaderImplementor versionsReader,
java.lang.Object primaryKey,
java.lang.Number revision,
boolean removed) |
protected java.util.Collection |
getNewCollectionContent(PersistentCollection newCollection) |
protected java.util.Collection |
getOldCollectionContent(java.io.Serializable oldCollection) |
protected void |
mapToMapFromObject(SessionImplementor session,
java.util.Map<java.lang.String,java.lang.Object> idData,
java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.Object changed)
Maps the changed collection element to the given map.
|
createIdMap, hasPropertiesWithModifiedFlag, mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntityhasPropertiesWithModifiedFlagprotected 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, boolean revisionTypeInId)
protected Initializor<T> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, java.lang.Object primaryKey, java.lang.Number revision, boolean removed)
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(SessionImplementor session, java.util.Map<java.lang.String,java.lang.Object> idData, java.util.Map<java.lang.String,java.lang.Object> data, java.lang.Object changed)
AbstractCollectionMappermapToMapFromObject in class AbstractCollectionMapper<T extends java.util.Map>idData - Map to which composite-id data should be added.data - Where to map the data.changed - The changed collection element to map.protected java.util.Set<java.lang.Object> buildCollectionChangeSet(java.lang.Object eventCollection,
java.util.Collection collection)
buildCollectionChangeSet in class AbstractCollectionMapper<T extends java.util.Map>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.