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(EnversService enversService,
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, mapModifiedFlagsToMapForCollectionChange
public MultiDynamicComponentMapper(PropertyData dynamicComponentData)
public boolean mapToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
PropertyMapper
mapToMapFromEntity
in interface PropertyMapper
mapToMapFromEntity
in class MultiPropertyMapper
session
- 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 ExtendedPropertyMapper
map
in class MultiPropertyMapper
public void mapModifiedFlagsToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
mapModifiedFlagsToMapFromEntity
in interface PropertyMapper
mapModifiedFlagsToMapFromEntity
in class MultiPropertyMapper
public void mapToEntityFromMap(EnversService enversService, Object obj, Map data, Object primaryKey, AuditReaderImplementor versionsReader, Number revision)
PropertyMapper
mapToEntityFromMap
in interface PropertyMapper
mapToEntityFromMap
in class MultiPropertyMapper
enversService
- The EnversService.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 © 2017 JBoss by Red Hat. All rights reserved.