public class BasicCollectionMapper<T extends Collection> extends AbstractCollectionMapper<T> implements PropertyMapper
| Modifier and Type | Field and Description |
|---|---|
protected MiddleComponentData |
elementComponentData |
collectionClass, commonCollectionMapperData| Constructor and Description |
|---|
BasicCollectionMapper(CommonCollectionMapperData commonCollectionMapperData,
Class<? extends T> collectionClass,
Class<? extends T> proxyClass,
MiddleComponentData elementComponentData) |
| Modifier and Type | Method and Description |
|---|---|
protected Initializor<T> |
getInitializor(AuditConfiguration verCfg,
AuditReaderImplementor versionsReader,
Object primaryKey,
Number revision) |
protected Collection |
getNewCollectionContent(PersistentCollection newCollection) |
protected Collection |
getOldCollectionContent(Serializable oldCollection) |
protected void |
mapToMapFromObject(Map<String,Object> data,
Object changed)
Maps the changed collection element to the given map.
|
mapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmapCollectionChanges, mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, mapToEntityFromMap, mapToMapFromEntityprotected final MiddleComponentData elementComponentData
public BasicCollectionMapper(CommonCollectionMapperData commonCollectionMapperData, Class<? extends T> collectionClass, Class<? extends T> proxyClass, MiddleComponentData elementComponentData)
protected Initializor<T> getInitializor(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
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(Map<String,Object> data, Object changed)
AbstractCollectionMappermapToMapFromObject in class AbstractCollectionMapper<T extends Collection>data - Where to map the data.changed - The changed collection element to map.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.