public class ToOneIdMapper extends AbstractToOneMapper
AbstractToOneMapper.EntityInfo
Constructor and Description |
---|
ToOneIdMapper(IdMapper delegate,
PropertyData propertyData,
String referencedEntityName,
boolean nonInsertableFake) |
Modifier and Type | Method and Description |
---|---|
void |
addMiddleEqualToQuery(Parameters parameters,
String idPrefix1,
String prefix1,
String idPrefix2,
String prefix2) |
protected boolean |
checkModified(SessionImplementor session,
Object newObj,
Object oldObj) |
void |
mapModifiedFlagsToMapForCollectionChange(String collectionPropertyName,
Map<String,Object> data) |
void |
mapModifiedFlagsToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
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.
|
void |
nullSafeMapToEntityFromMap(EnversService enversService,
Object obj,
Map data,
Object primaryKey,
AuditReaderImplementor versionsReader,
Number revision)
Parameter
obj is never null . |
getEntityInfo, getPropertyData, mapCollectionChanges, mapToEntityFromMap, setPropertyValue
public ToOneIdMapper(IdMapper delegate, PropertyData propertyData, String referencedEntityName, boolean nonInsertableFake)
public boolean mapToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
PropertyMapper
mapToMapFromEntity
in interface PropertyMapper
mapToMapFromEntity
in class AbstractToOneMapper
session
- The current session.data
- Data to map to.newObj
- New state of the entity.oldObj
- Old state of the entity.public void mapModifiedFlagsToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
public void mapModifiedFlagsToMapForCollectionChange(String collectionPropertyName, Map<String,Object> data)
protected boolean checkModified(SessionImplementor session, Object newObj, Object oldObj)
public void nullSafeMapToEntityFromMap(EnversService enversService, Object obj, Map data, Object primaryKey, AuditReaderImplementor versionsReader, Number revision)
AbstractToOneMapper
obj
is never null
.nullSafeMapToEntityFromMap
in class AbstractToOneMapper
public void addMiddleEqualToQuery(Parameters parameters, String idPrefix1, String prefix1, String idPrefix2, String prefix2)
Copyright © 2017 JBoss by Red Hat. All rights reserved.