Class ListCollectionMapper
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<List>
org.hibernate.envers.internal.entities.mapper.relation.ListCollectionMapper
- All Implemented Interfaces:
DynamicComponentMapperSupport, ModifiedFlagMapperSupport, PropertyMapper
public final class ListCollectionMapper
extends AbstractCollectionMapper<List>
implements PropertyMapper
-
Field Summary
Fields inherited from class AbstractCollectionMapper
collectionClass, commonCollectionMapperData, configuration, ordinalInId, revisionTypeInId -
Constructor Summary
ConstructorsConstructorDescriptionListCollectionMapper(Configuration configuration, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData, boolean revisionTypeInId) -
Method Summary
Modifier and TypeMethodDescriptionbuildCollectionChangeSet(Object eventCollection, Collection collection) protected Initializor<List> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed) protected CollectiongetNewCollectionContent(org.hibernate.collection.spi.PersistentCollection newCollection) protected CollectiongetOldCollectionContent(Serializable oldCollection) protected List<PersistentCollectionChangeData> 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 inherited from class AbstractCollectionMapper
addCollectionChanges, createIdMap, hasPropertiesWithModifiedFlag, isSame, mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToEntityFromMap, mapToMapFromEntity, resolveCollectionPersisterMethods inherited from class AbstractPropertyMapper
isDynamicComponentMap, markAsDynamicComponentMapMethods 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 DynamicComponentMapperSupport
isDynamicComponentMap, markAsDynamicComponentMapMethods inherited from interface ModifiedFlagMapperSupport
hasPropertiesWithModifiedFlagMethods inherited from interface PropertyMapper
mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToEntityFromMap, mapToMapFromEntity
-
Constructor Details
-
ListCollectionMapper
public ListCollectionMapper(Configuration configuration, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData, boolean revisionTypeInId)
-
-
Method Details
-
getInitializor
protected Initializor<List> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed) - Specified by:
getInitializorin classAbstractCollectionMapper<List>
-
getNewCollectionContent
protected Collection getNewCollectionContent(org.hibernate.collection.spi.PersistentCollection newCollection) - Specified by:
getNewCollectionContentin classAbstractCollectionMapper<List>
-
getOldCollectionContent
- Specified by:
getOldCollectionContentin classAbstractCollectionMapper<List>
-
buildCollectionChangeSet
- Specified by:
buildCollectionChangeSetin classAbstractCollectionMapper<List>
-