public class MultiDynamicComponentMapper extends MultiPropertyMapper
properties| Constructor and Description |
|---|
MultiDynamicComponentMapper(PropertyData dynamicComponentData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
map(SessionImplementor session,
Map<String,Object> data,
String[] propertyNames,
Object[] newState,
Object[] oldState) |
void |
mapModifiedFlagsToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
void |
mapToEntityFromMap(AuditConfiguration verCfg,
Object obj,
Map data,
Object primaryKey,
AuditReaderImplementor versionsReader,
Number revision)
Maps properties from the given map to the given object.
|
boolean |
mapToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj)
Maps properties to the given map, basing on differences between properties of new and old objects.
|
add, addComponent, addComposite, getAtIndexOrNull, getProperties, getPropertyDatas, mapCollectionChanges, mapModifiedFlagsToMapForCollectionChangepublic MultiDynamicComponentMapper(PropertyData dynamicComponentData)
public boolean mapToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
PropertyMappermapToMapFromEntity in interface PropertyMappermapToMapFromEntity in class MultiPropertyMappersession - The current session.data - Data to map to.newObj - New state of the entity.oldObj - Old state of the entity.public boolean map(SessionImplementor session, Map<String,Object> data, String[] propertyNames, Object[] newState, Object[] oldState)
map in interface ExtendedPropertyMappermap in class MultiPropertyMapperpublic void mapModifiedFlagsToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
mapModifiedFlagsToMapFromEntity in interface PropertyMappermapModifiedFlagsToMapFromEntity in class MultiPropertyMapperpublic void mapToEntityFromMap(AuditConfiguration verCfg, Object obj, Map data, Object primaryKey, AuditReaderImplementor versionsReader, Number revision)
PropertyMappermapToEntityFromMap in interface PropertyMappermapToEntityFromMap in class MultiPropertyMapperverCfg - Versions configuration.obj - Object to map to.data - Data to map from.primaryKey - Primary key of the object to which we map (for relations)versionsReader - VersionsReader for reading relationsrevision - Revision at which the object is read, for reading relationsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.