Class MapCollectionMapper<T extends Map>
java.lang.Object
org.hibernate.envers.internal.entities.mapper.AbstractMapper
org.hibernate.envers.internal.entities.mapper.AbstractPropertyMapper
org.hibernate.envers.internal.entities.mapper.relation.AbstractCollectionMapper<T>
org.hibernate.envers.internal.entities.mapper.relation.MapCollectionMapper<T>
- All Implemented Interfaces:
DynamicComponentMapperSupport, ModifiedFlagMapperSupport, PropertyMapper
- Direct Known Subclasses:
SortedMapCollectionMapper
public class MapCollectionMapper<T extends Map>
extends AbstractCollectionMapper<T>
implements PropertyMapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MiddleComponentDataprotected final MiddleComponentDataFields declared in class AbstractCollectionMapper
collectionClass, commonCollectionMapperData, configuration, ordinalInId, revisionTypeInId -
Constructor Summary
ConstructorsConstructorDescriptionMapCollectionMapper(Configuration configuration, CommonCollectionMapperData commonCollectionMapperData, Class<? extends T> collectionClass, Class<? extends T> proxyClass, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData, boolean revisionTypeInId) -
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionChangeSet(Object eventCollection, Collection collection) protected Initializor<T> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed) protected CollectiongetNewCollectionContent(org.hibernate.collection.spi.PersistentCollection newCollection) protected CollectiongetOldCollectionContent(Serializable oldCollection) mapCollectionChanges(org.hibernate.engine.spi.SharedSessionContractImplementor session, org.hibernate.collection.spi.PersistentCollection newColl, Serializable oldColl, Object id) Map collection changes using hash identity.protected voidmapToMapFromObject(org.hibernate.engine.spi.SharedSessionContractImplementor session, Map<String, Object> idData, Map<String, Object> data, Object changed) Maps the changed collection element to the given map.Methods declared in class AbstractCollectionMapper
addCollectionChanges, createIdMap, hasPropertiesWithModifiedFlag, isSame, mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToEntityFromMap, mapToMapFromEntity, resolveCollectionPersisterMethods declared in class AbstractPropertyMapper
isDynamicComponentMap, markAsDynamicComponentMapMethods declared in class AbstractMapper
getAndSetValue, getValueFromObject, getValueFromObject, newObjectInstance, setValueOnObjectMethods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface DynamicComponentMapperSupport
isDynamicComponentMap, markAsDynamicComponentMapMethods declared in interface ModifiedFlagMapperSupport
hasPropertiesWithModifiedFlagMethods declared in interface PropertyMapper
mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToEntityFromMap, mapToMapFromEntity
-
Field Details
-
elementComponentData
-
indexComponentData
-
-
Constructor Details
-
MapCollectionMapper
public MapCollectionMapper(Configuration configuration, CommonCollectionMapperData commonCollectionMapperData, Class<? extends T> collectionClass, Class<? extends T> proxyClass, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData, boolean revisionTypeInId)
-
-
Method Details
-
getInitializor
protected Initializor<T> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed) -
getNewCollectionContent
protected Collection getNewCollectionContent(org.hibernate.collection.spi.PersistentCollection newCollection) -
getOldCollectionContent
-
buildCollectionChangeSet
-