public class BasicCollectionMapper<T extends Collection> extends AbstractCollectionMapper<T> implements PropertyMapper
Modifier and Type | Field and Description |
---|---|
protected MiddleComponentData |
elementComponentData |
collectionClass, commonCollectionMapperData, ordinalInId, revisionTypeInId
Constructor and Description |
---|
BasicCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
Class<? extends T> collectionClass,
Class<? extends T> proxyClass,
MiddleComponentData elementComponentData,
boolean ordinalInId,
boolean revisionTypeInId) |
Modifier and Type | Method and Description |
---|---|
protected Initializor<T> |
getInitializor(EnversService enversService,
AuditReaderImplementor versionsReader,
Object primaryKey,
Number revision,
boolean removed) |
protected Collection |
getNewCollectionContent(PersistentCollection newCollection) |
protected Collection |
getOldCollectionContent(Serializable oldCollection) |
protected void |
mapToMapFromObject(SessionImplementor session,
Map<String,Object> idData,
Map<String,Object> data,
Object changed)
Maps the changed collection element to the given map.
|
createIdMap, 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
public BasicCollectionMapper(CommonCollectionMapperData commonCollectionMapperData, Class<? extends T> collectionClass, Class<? extends T> proxyClass, MiddleComponentData elementComponentData, boolean ordinalInId, boolean revisionTypeInId)
protected Initializor<T> getInitializor(EnversService enversService, AuditReaderImplementor versionsReader, Object primaryKey, Number revision, boolean removed)
getInitializor
in class AbstractCollectionMapper<T extends Collection>
protected Collection getNewCollectionContent(PersistentCollection newCollection)
getNewCollectionContent
in class AbstractCollectionMapper<T extends Collection>
protected Collection getOldCollectionContent(Serializable oldCollection)
getOldCollectionContent
in class AbstractCollectionMapper<T extends Collection>
protected void mapToMapFromObject(SessionImplementor session, Map<String,Object> idData, Map<String,Object> data, Object changed)
AbstractCollectionMapper
mapToMapFromObject
in class AbstractCollectionMapper<T extends Collection>
idData
- Map to which composite-id data should be added.data
- Where to map the data.changed
- The changed collection element to map.Copyright © 2016 JBoss by Red Hat. All rights reserved.