public abstract class AbstractOneToOneMapper extends AbstractToOneMapper
AbstractToOneMapper.EntityInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractOneToOneMapper(String entityName,
String referencedEntityName,
PropertyData propertyData,
ServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
mapModifiedFlagsToMapForCollectionChange(String collectionPropertyName,
Map<String,Object> data) |
void |
mapModifiedFlagsToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
void |
nullSafeMapToEntityFromMap(EnversService enversService,
Object obj,
Map data,
Object primaryKey,
AuditReaderImplementor versionsReader,
Number revision)
Parameter
obj is never null . |
protected abstract Object |
queryForReferencedEntity(AuditReaderImplementor versionsReader,
AbstractToOneMapper.EntityInfo referencedEntity,
Serializable primaryKey,
Number revision) |
getEntityInfo, getPropertyData, mapCollectionChanges, mapToEntityFromMap, mapToMapFromEntity, setPropertyValue
protected AbstractOneToOneMapper(String entityName, String referencedEntityName, PropertyData propertyData, ServiceRegistry serviceRegistry)
public void nullSafeMapToEntityFromMap(EnversService enversService, Object obj, Map data, Object primaryKey, AuditReaderImplementor versionsReader, Number revision)
AbstractToOneMapper
obj
is never null
.nullSafeMapToEntityFromMap
in class AbstractToOneMapper
protected abstract Object queryForReferencedEntity(AuditReaderImplementor versionsReader, AbstractToOneMapper.EntityInfo referencedEntity, Serializable primaryKey, Number revision)
versionsReader
- Audit reader.referencedEntity
- Referenced entity descriptor.primaryKey
- Referenced entity identifier.revision
- Revision number.public void mapModifiedFlagsToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
Copyright © 2017 JBoss by Red Hat. All rights reserved.