public final class ListCollectionMapper extends AbstractCollectionMapper<List> implements PropertyMapper
collectionClass, commonCollectionMapperData, ordinalInId, revisionTypeInId| Constructor and Description |
|---|
ListCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
MiddleComponentData elementComponentData,
MiddleComponentData indexComponentData,
boolean revisionTypeInId) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<Object> |
buildCollectionChangeSet(Object eventCollection,
Collection collection) |
protected Initializor<List> |
getInitializor(EnversService enversService,
AuditReaderImplementor versionsReader,
Object primaryKey,
Number revision,
boolean removed) |
protected Collection |
getNewCollectionContent(PersistentCollection newCollection) |
protected Collection |
getOldCollectionContent(Serializable oldCollection) |
protected List<PersistentCollectionChangeData> |
mapCollectionChanges(SessionImplementor session,
PersistentCollection newColl,
Serializable oldColl,
Serializable id)
Map collection changes using hash identity.
|
protected void |
mapToMapFromObject(SessionImplementor session,
Map<String,Object> idData,
Map<String,Object> data,
Object changed)
Maps the changed collection element to the given map.
|
addCollectionChanges, createIdMap, hasPropertiesWithModifiedFlag, isSame, mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntity, resolveCollectionPersisterisDynamicComponentMap, markAsDynamicComponentMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntityhasPropertiesWithModifiedFlagisDynamicComponentMap, markAsDynamicComponentMappublic ListCollectionMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData, boolean revisionTypeInId)
protected Initializor<List> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed)
getInitializor in class AbstractCollectionMapper<List>protected Collection getNewCollectionContent(PersistentCollection newCollection)
getNewCollectionContent in class AbstractCollectionMapper<List>protected Collection getOldCollectionContent(Serializable oldCollection)
getOldCollectionContent in class AbstractCollectionMapper<List>protected void mapToMapFromObject(SessionImplementor session, Map<String,Object> idData, Map<String,Object> data, Object changed)
AbstractCollectionMappermapToMapFromObject in class AbstractCollectionMapper<List>idData - Map to which composite-id data should be added.data - Where to map the data.changed - The changed collection element to map.protected Set<Object> buildCollectionChangeSet(Object eventCollection, Collection collection)
buildCollectionChangeSet in class AbstractCollectionMapper<List>protected List<PersistentCollectionChangeData> mapCollectionChanges(SessionImplementor session, PersistentCollection newColl, Serializable oldColl, Serializable id)
AbstractCollectionMappermapCollectionChanges in class AbstractCollectionMapper<List>session - The session.newColl - The new persistent collection.oldColl - The old collection.id - The owning entity identifier.Copyright © 2019 JBoss by Red Hat. All rights reserved.